diff options
author | Erik Hovland <erik@hovland.org> | 2008-07-18 07:13:56 +0000 |
---|---|---|
committer | Benoit Fouet <benoit.fouet@free.fr> | 2008-07-18 07:13:56 +0000 |
commit | be390a4e2e71e21fd6185185a7f5c882ff16ed05 (patch) | |
tree | 5d749e46f3da75771d51735b361af041c67bab0d | |
parent | b7b38fb28abbf1c6e308fede822cf3222c9c2ac2 (diff) | |
download | ffmpeg-be390a4e2e71e21fd6185185a7f5c882ff16ed05.tar.gz |
Fix a mem leak in av_find_stream_info().
Patch by Erik Hovland erik hovland org
Originally committed as revision 14276 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/utils.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index 02ab108117..44299f9f60 100644 --- 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; |