diff options
author | Jai Menon <realityman@gmx.net> | 2010-03-03 17:26:00 +0000 |
---|---|---|
committer | Vitor Sessak <vitor1001@gmail.com> | 2010-03-03 17:26:00 +0000 |
commit | 1f6d0d42c53cde5e33e92c4529b774c256157f89 (patch) | |
tree | d6a003d3588dbeb6e5441ee4ad1660fdee591ab9 /libavformat | |
parent | 0a41faa9a77dc83d8d933e99f1ba902ecd146e79 (diff) | |
download | ffmpeg-streaming-1f6d0d42c53cde5e33e92c4529b774c256157f89.zip ffmpeg-streaming-1f6d0d42c53cde5e33e92c4529b774c256157f89.tar.gz |
Plug memory leak in NSV demuxer.
Patch by Jai Menon.
Originally committed as revision 22173 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/nsvdec.c | 4 |
1 files changed, 4 insertions, 0 deletions
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 |