1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

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
This commit is contained in:
Erik Hovland 2008-07-18 07:13:56 +00:00 committed by Benoit Fouet
parent b7b38fb28a
commit be390a4e2e

View File

@ -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;