[SCM] libav/experimental: memleak

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 16:24:27 UTC 2013


The following commit has been merged in the experimental branch:
commit 66602c67beac66e1d02dcf4587c28a0275088bcd
Author: Michael Niedermayer <michaelni at gmx.at>
Date:   Thu Jun 26 23:02:42 2008 +0000

    memleak
    
    Originally committed as revision 14003 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavformat/psxstr.c b/libavformat/psxstr.c
index 5be7a95..c158bb4 100644
--- a/libavformat/psxstr.c
+++ b/libavformat/psxstr.c
@@ -242,6 +242,11 @@ static int str_read_packet(AVFormatContext *s,
 static int str_read_close(AVFormatContext *s)
 {
     StrDemuxContext *str = s->priv_data;
+    int i;
+    for(i=0; i<32; i++){
+        if(str->channels[i].tmp_pkt.data)
+            av_free_packet(&str->channels[i].tmp_pkt);
+    }
 
     return 0;
 }

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list