[FFmpeg-cvslog] r19370 - trunk/libavformat/utils.c

benoit subversion
Wed Jul 8 10:26:58 CEST 2009


Author: benoit
Date: Wed Jul  8 10:26:57 2009
New Revision: 19370

Log:
Fix mem leak when user preallocates an AVFormatContext, passes it to
av_open_input_file(), but the file does not exist.
Patch by Art Clarke a$(surname) xuggle com

Modified:
   trunk/libavformat/utils.c

Modified: trunk/libavformat/utils.c
==============================================================================
--- trunk/libavformat/utils.c	Wed Jul  8 00:00:13 2009	(r19369)
+++ trunk/libavformat/utils.c	Wed Jul  8 10:26:57 2009	(r19370)
@@ -499,7 +499,7 @@ int av_open_input_file(AVFormatContext *
     av_freep(&pd->buf);
     if (pb)
         url_fclose(pb);
-    *ic_ptr = NULL;
+    av_freep(ic_ptr);
     return err;
 
 }



More information about the ffmpeg-cvslog mailing list