Originally committed as revision 13872 to svn://svn.ffmpeg.org/ffmpeg/trunk
Baptiste Coudurier authored on 2008/06/22 11:34:33... | ... |
@@ -2500,6 +2500,7 @@ static int http_receive_data(HTTPContext *c) |
2500 | 2500 |
/* Now we have the actual streams */ |
2501 | 2501 |
if (s->nb_streams != feed->nb_streams) { |
2502 | 2502 |
av_close_input_stream(s); |
2503 |
+ av_free(pb); |
|
2503 | 2504 |
goto fail; |
2504 | 2505 |
} |
2505 | 2506 |
|
... | ... |
@@ -2508,6 +2509,7 @@ static int http_receive_data(HTTPContext *c) |
2508 | 2508 |
s->streams[i]->codec, sizeof(AVCodecContext)); |
2509 | 2509 |
|
2510 | 2510 |
av_close_input_stream(s); |
2511 |
+ av_free(pb); |
|
2511 | 2512 |
} |
2512 | 2513 |
c->buffer_ptr = c->buffer; |
2513 | 2514 |
} |