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

benoit subversion
Fri Jul 18 09:13:56 CEST 2008


Author: benoit
Date: Fri Jul 18 09:13:56 2008
New Revision: 14276

Log:
Fix a mem leak in av_find_stream_info().
Patch by Erik Hovland erik hovland org


Modified:
   trunk/libavformat/utils.c

Modified: trunk/libavformat/utils.c
==============================================================================
--- trunk/libavformat/utils.c	(original)
+++ trunk/libavformat/utils.c	Fri Jul 18 09:13:56 2008
@@ -2020,8 +2020,10 @@ int av_find_stream_info(AVFormatContext 
         }
 
         pkt= add_to_pktbuf(&ic->packet_buffer, &pkt1);
-        if(av_dup_packet(pkt) < 0)
+        if(av_dup_packet(pkt) < 0) {
+            av_free(duration_error);
             return AVERROR(ENOMEM);
+        }
 
         read_size += pkt->size;
 




More information about the ffmpeg-cvslog mailing list