[xiph-commits] r3729 - liboggplay/trunk/src/liboggplay

doublec at svn.annodex.net doublec at svn.annodex.net
Mon Oct 13 15:58:41 PDT 2008


Author: doublec
Date: 2008-10-13 15:58:41 -0700 (Mon, 13 Oct 2008)
New Revision: 3729

Modified:
   liboggplay/trunk/src/liboggplay/oggplay_seek.c
Log:
Ticket 429. Fix for freeing uninitialized pointer


Modified: liboggplay/trunk/src/liboggplay/oggplay_seek.c
===================================================================
--- liboggplay/trunk/src/liboggplay/oggplay_seek.c	2008-10-13 11:12:01 UTC (rev 3728)
+++ liboggplay/trunk/src/liboggplay/oggplay_seek.c	2008-10-13 22:58:41 UTC (rev 3729)
@@ -82,7 +82,7 @@
    * this will occur as soon as the thread calls oggplay_buffer_release_next
    */
 
-  trash = malloc(sizeof(OggPlaySeekTrash));
+  trash = calloc(sizeof(OggPlaySeekTrash), 1);
 
   /*
    * store the old buffer in it next.



More information about the commits mailing list