Commit e049afd0 authored by bcoudurier's avatar bcoudurier

dont forget to free packet, fix memleak

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@13222 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 90806179
...@@ -2192,9 +2192,11 @@ static int http_prepare_data(HTTPContext *c) ...@@ -2192,9 +2192,11 @@ 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