[FFmpeg-cvslog] r22173 - trunk/libavformat/nsvdec.c

vitor subversion
Wed Mar 3 18:26:00 CET 2010


Author: vitor
Date: Wed Mar  3 18:26:00 2010
New Revision: 22173

Log:
Plug memory leak in NSV demuxer.

Patch by Jai Menon.

Modified:
   trunk/libavformat/nsvdec.c

Modified: trunk/libavformat/nsvdec.c
==============================================================================
--- trunk/libavformat/nsvdec.c	Wed Mar  3 18:24:32 2010	(r22172)
+++ trunk/libavformat/nsvdec.c	Wed Mar  3 18:26:00 2010	(r22173)
@@ -728,6 +728,10 @@ static int nsv_read_close(AVFormatContex
 
     av_freep(&nsv->nsvs_file_offset);
     av_freep(&nsv->nsvs_timestamps);
+    if (nsv->ahead[0].data)
+        av_free_packet(&nsv->ahead[0]);
+    if (nsv->ahead[1].data)
+        av_free_packet(&nsv->ahead[1]);
 
 #if 0
 



More information about the ffmpeg-cvslog mailing list