[xiph-commits] r17051 - trunk/vorbis/lib

xiphmont at svn.xiph.org xiphmont at svn.xiph.org
Thu Mar 25 18:54:25 PDT 2010


Author: xiphmont
Date: 2010-03-25 18:54:25 -0700 (Thu, 25 Mar 2010)
New Revision: 17051

Modified:
   trunk/vorbis/lib/info.c
Log:
Leak fix in decode broke codebook load; fixed



Modified: trunk/vorbis/lib/info.c
===================================================================
--- trunk/vorbis/lib/info.c	2010-03-26 01:34:42 UTC (rev 17050)
+++ trunk/vorbis/lib/info.c	2010-03-26 01:54:25 UTC (rev 17051)
@@ -278,7 +278,7 @@
   ci->books=oggpack_read(opb,8)+1;
   if(ci->books<=0)goto err_out;
   for(i=0;i<ci->books;i++){
-    ci->book_param[i]=_ogg_calloc(1,sizeof(*ci->book_param[i]));
+    ci->book_param[i]=vorbis_staticbook_unpack(opb);
     if(!ci->book_param[i])goto err_out;
   }
 



More information about the commits mailing list