[MPlayer-cvslog] r32701 - trunk/libmpdemux/demux_gif.c

reimar subversion at mplayerhq.hu
Sun Dec 12 11:37:15 CET 2010


Author: reimar
Date: Sun Dec 12 11:37:15 2010
New Revision: 32701

Log:
Fix memleaks on error.

Modified:
   trunk/libmpdemux/demux_gif.c

Modified: trunk/libmpdemux/demux_gif.c
==============================================================================
--- trunk/libmpdemux/demux_gif.c	Sun Dec 12 11:23:41 2010	(r32700)
+++ trunk/libmpdemux/demux_gif.c	Sun Dec 12 11:37:15 2010	(r32701)
@@ -168,6 +168,7 @@ static int demux_gif_fill_buffer(demuxer
 
   if (DGifGetLine(gif, buf, len) == GIF_ERROR) {
     PrintGifError();
+    free(buf);
     return 0; // oops
   }
 
@@ -260,6 +261,7 @@ static demuxer_t* demux_open_gif(demuxer
 #endif
   if (!gif) {
     PrintGifError();
+    free(priv);
     return NULL;
   }
 


More information about the MPlayer-cvslog mailing list