1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-08 13:22:53 +02:00

do not forget to free packet, fix memleak

Originally committed as revision 13222 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Baptiste Coudurier 2008-05-21 20:50:41 +00:00
parent afe359c110
commit 8a0b55ff35

View File

@ -2192,8 +2192,10 @@ static int http_prepare_data(HTTPContext *c)
c->buffer_end = c->pb_buffer + len;
codec->frame_number++;
if (len == 0)
if (len == 0) {
av_free_packet(&pkt);
goto redo;
}
}
av_free_packet(&pkt);
}