Commit 6418a4f2 authored by Vincent Penquerc'h's avatar Vincent Penquerc'h

oggz-dump: close open file on exit

Cleaner, even if the OS should be nice to us.
parent a5639cce
......@@ -729,9 +729,15 @@ main (int argc, char ** argv)
exit_ok:
oddata_delete (oddata);
if (outfilename != NULL) {
fclose (outfile);
}
exit (0);
exit_err:
oddata_delete (oddata);
if (outfilename != NULL) {
fclose (outfile);
}
exit (1);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment