projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b7b38fb
)
Fix a mem leak in av_find_stream_info().
author
Erik Hovland
<erik@hovland.org>
Fri, 18 Jul 2008 07:13:56 +0000
(07:13 +0000)
committer
Benoit Fouet
<benoit.fouet@free.fr>
Fri, 18 Jul 2008 07:13:56 +0000
(07:13 +0000)
Patch by Erik Hovland erik hovland org
Originally committed as revision 14276 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/utils.c
patch
|
blob
|
history
diff --git
a/libavformat/utils.c
b/libavformat/utils.c
index
02ab108
..
44299f9
100644
(file)
--- a/
libavformat/utils.c
+++ b/
libavformat/utils.c
@@
-2020,8
+2020,10
@@
int av_find_stream_info(AVFormatContext *ic)
}
pkt= add_to_pktbuf(&ic->packet_buffer, &pkt1);
- if(av_dup_packet(pkt) < 0)
+ if(av_dup_packet(pkt) < 0) {
+ av_free(duration_error);
return AVERROR(ENOMEM);
+ }
read_size += pkt->size;