Commit c678ad25 authored by benoit's avatar benoit

Fix a mem leak in av_find_stream_info().

Patch by Erik Hovland erik hovland org


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@14276 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 4c826a2c
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment