[xiph-commits] r3701 - liboggz/trunk/src/tools/oggz-chop

giles at svn.annodex.net giles at svn.annodex.net
Fri Aug 8 23:12:26 PDT 2008


Author: giles
Date: 2008-08-08 23:12:26 -0700 (Fri, 08 Aug 2008)
New Revision: 3701

Modified:
   liboggz/trunk/src/tools/oggz-chop/oggz-chop.c
Log:
Don't leak an oggz handle when we can't open the file to be chopped.


Modified: liboggz/trunk/src/tools/oggz-chop/oggz-chop.c
===================================================================
--- liboggz/trunk/src/tools/oggz-chop/oggz-chop.c	2008-08-09 05:56:24 UTC (rev 3700)
+++ liboggz/trunk/src/tools/oggz-chop/oggz-chop.c	2008-08-09 06:12:26 UTC (rev 3701)
@@ -737,6 +737,7 @@
     if (state->outfile == NULL) {
       fprintf (stderr, "oggz-chop: unable to open output file %s\n",
 	       state->outfilename);
+      oggz_close(oggz);
       return -1;
     }
   }



More information about the commits mailing list