[SCM] libav/experimental: Plug memory leak in NSV demuxer.

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 17:02:37 UTC 2013


The following commit has been merged in the experimental branch:
commit 1f6d0d42c53cde5e33e92c4529b774c256157f89
Author: Jai Menon <realityman at gmx.net>
Date:   Wed Mar 3 17:26:00 2010 +0000

    Plug memory leak in NSV demuxer.
    
    Patch by Jai Menon.
    
    Originally committed as revision 22173 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavformat/nsvdec.c b/libavformat/nsvdec.c
index 13f7374..6149d83 100644
--- a/libavformat/nsvdec.c
+++ b/libavformat/nsvdec.c
@@ -728,6 +728,10 @@ static int nsv_read_close(AVFormatContext *s)
 
     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
 

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list