changeset 35346:9eeba22fd78a

Fix memory leaks when error occurs.
author upsuper
date Thu, 22 Nov 2012 10:28:30 +0000
parents dccbfcc7c177
children 11408d97de7a
files libmpdemux/demux_gif.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_gif.c	Thu Nov 22 08:40:47 2012 +0000
+++ b/libmpdemux/demux_gif.c	Thu Nov 22 10:28:30 2012 +0000
@@ -169,6 +169,7 @@
   if (DGifGetLine(gif, buf, len) == GIF_ERROR) {
     PrintGifError();
     free(buf);
+    free_demux_packet(dp);
     return 0; // oops
   }