[Vorbis-dev] oggdec not freeing memory when outfilename is not specified.

Tahseen Mohammad tahseen.mohammad at gmail.com
Wed Jun 7 01:13:42 PDT 2006


Index: oggdec/oggdec.c
===================================================================
--- oggdec/oggdec.c     (revision 11531)
+++ oggdec/oggdec.c     (working copy)
@@ -409,6 +409,8 @@
             if(!infile)
                 return 1;
             outfile = open_output(out);
+           if (!outfilename)
+                   free(out);
             if(!outfile) {
                 fclose(infile);
                 return
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.xiph.org/pipermail/vorbis-dev/attachments/20060607/31c5e8ff/attachment.html


More information about the Vorbis-dev mailing list