Commit 8a0b55ff authored by Baptiste Coudurier's avatar Baptiste Coudurier

do not forget to free packet, fix memleak

Originally committed as revision 13222 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent afe359c1
...@@ -2192,8 +2192,10 @@ static int http_prepare_data(HTTPContext *c) ...@@ -2192,8 +2192,10 @@ static int http_prepare_data(HTTPContext *c)
c->buffer_end = c->pb_buffer + len; c->buffer_end = c->pb_buffer + len;
codec->frame_number++; codec->frame_number++;
if (len == 0) if (len == 0) {
av_free_packet(&pkt);
goto redo; goto redo;
}
} }
av_free_packet(&pkt); av_free_packet(&pkt);
} }
......
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