[xiph-commits] r14160 - trunk/vorbis-tools/ogginfo

ivo at svn.xiph.org ivo at svn.xiph.org
Thu Nov 15 17:53:59 PST 2007


Author: ivo
Date: 2007-11-15 17:53:59 -0800 (Thu, 15 Nov 2007)
New Revision: 14160

Modified:
   trunk/vorbis-tools/ogginfo/ogginfo2.c
Log:
free an unallocated pointer in utf8_decode per ticket #1122

Modified: trunk/vorbis-tools/ogginfo/ogginfo2.c
===================================================================
--- trunk/vorbis-tools/ogginfo/ogginfo2.c	2007-11-15 23:43:13 UTC (rev 14159)
+++ trunk/vorbis-tools/ogginfo/ogginfo2.c	2007-11-16 01:53:59 UTC (rev 14160)
@@ -329,8 +329,10 @@
              return;
 	 }
          *sep = 0;
-         info("\t%s=%s\n", comment, decoded);
-         free(decoded);
+         if(!broken) {
+           info("\t%s=%s\n", comment, decoded);
+           free(decoded);
+         }
      }
 }
 



More information about the commits mailing list