OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0a41faa
)
Plug memory leak in NSV demuxer.
author
Jai Menon
<realityman@gmx.net>
Wed, 3 Mar 2010 17:26:00 +0000
(17:26 +0000)
committer
Vitor Sessak
<vitor1001@gmail.com>
Wed, 3 Mar 2010 17:26:00 +0000
(17:26 +0000)
Patch by Jai Menon.
Originally committed as revision 22173 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/nsvdec.c
patch
|
blob
|
history
diff --git
a/libavformat/nsvdec.c
b/libavformat/nsvdec.c
index
13f7374
..
6149d83
100644
(file)
--- 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