summaryrefslogtreecommitdiff
path: root/libavformat/psxstr.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2008-06-26 23:02:42 +0000
committerMichael Niedermayer <michaelni@gmx.at>2008-06-26 23:02:42 +0000
commit66602c67beac66e1d02dcf4587c28a0275088bcd (patch)
tree09c57f76cf1ecbb395edc533ee51438b5398020a /libavformat/psxstr.c
parent435a6082f9e368196e0d8347858c63de1126af2c (diff)
memleak
Originally committed as revision 14003 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/psxstr.c')
-rw-r--r--libavformat/psxstr.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavformat/psxstr.c b/libavformat/psxstr.c
index 5be7a959ff..c158bb45a5 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;
}