diff --git a/libavformat/http.c b/libavformat/http.c
index 1fc95c768c..476b9a8456 100644
|
a
|
b
|
static int http_listen(URLContext *h, const char *uri, int flags,
|
| 605 | 605 | } |
| 606 | 606 | fail: |
| 607 | 607 | av_dict_free(&s->chained_options); |
| | 608 | av_dict_free(&s->cookie_dict); |
| 608 | 609 | return ret; |
| 609 | 610 | } |
| 610 | 611 | |
| … |
… |
static int http_open(URLContext *h, const char *uri, int flags,
|
| 645 | 646 | } |
| 646 | 647 | ret = http_open_cnx(h, options); |
| 647 | 648 | bail_out: |
| 648 | | if (ret < 0) |
| | 649 | if (ret < 0) { |
| 649 | 650 | av_dict_free(&s->chained_options); |
| | 651 | av_dict_free(&s->cookie_dict); |
| | 652 | } |
| 650 | 653 | return ret; |
| 651 | 654 | } |
| 652 | 655 | |
| … |
… |
static int http_close(URLContext *h)
|
| 1763 | 1766 | if (s->hd) |
| 1764 | 1767 | ffurl_closep(&s->hd); |
| 1765 | 1768 | av_dict_free(&s->chained_options); |
| | 1769 | av_dict_free(&s->cookie_dict); |
| 1766 | 1770 | return ret; |
| 1767 | 1771 | } |
| 1768 | 1772 | |