popen() requires pclose().

This commit is contained in:
Guus Sliepen 2006-11-11 14:37:03 +00:00
parent 0200d3cd5d
commit 0d1ac68c59

View file

@ -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);
}