[Ffmpeg-cvslog] CVS: ffmpeg/libavformat img.c,1.44,1.45

Baptiste Coudurier CVS bcoudurier
Sun Mar 26 16:06:03 CEST 2006


Update of /cvsroot/ffmpeg/ffmpeg/libavformat
In directory mail:/var2/tmp/cvs-serv22776/libavformat

Modified Files:
	img.c 
Log Message:
fix double free, priv_data is freed in av_open_input_stream

Index: img.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavformat/img.c,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -d -r1.44 -r1.45
--- img.c	11 Mar 2006 00:22:21 -0000	1.44
+++ img.c	26 Mar 2006 14:06:00 -0000	1.45
@@ -116,7 +116,6 @@
 
     st = av_new_stream(s1, 0);
     if (!st) {
-        av_free(s);
         return -ENOMEM;
     }
 
@@ -178,7 +177,6 @@
     if (!s->is_pipe)
         url_fclose(f);
  fail:
-    av_free(s);
     return AVERROR_IO;
 }
 





More information about the ffmpeg-cvslog mailing list