popen() requires pclose().
This commit is contained in:
parent
0200d3cd5d
commit
0d1ac68c59
1 changed files with 4 additions and 3 deletions
|
@ -364,9 +364,10 @@ void dump_graph(void)
|
|||
|
||||
fprintf(file, "}\n");
|
||||
|
||||
fclose(file);
|
||||
|
||||
if(filename[0] != '|') {
|
||||
if(filename[0] == '|') {
|
||||
pclose(file);
|
||||
} else {
|
||||
fclose(file);
|
||||
rename(tmpname, filename);
|
||||
free(tmpname);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue