Ticket #9273: http.c.patch

File http.c.patch, 833 bytes (added by RobertIntinor, 5 years ago)

Potential solution

  • libavformat/http.c

    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,  
    605605    }
    606606fail:
    607607    av_dict_free(&s->chained_options);
     608    av_dict_free(&s->cookie_dict);
    608609    return ret;
    609610}
    610611
    static int http_open(URLContext *h, const char *uri, int flags,  
    645646    }
    646647    ret = http_open_cnx(h, options);
    647648bail_out:
    648     if (ret < 0)
     649    if (ret < 0) {
    649650        av_dict_free(&s->chained_options);
     651        av_dict_free(&s->cookie_dict);
     652    }
    650653    return ret;
    651654}
    652655
    static int http_close(URLContext *h)  
    17631766    if (s->hd)
    17641767        ffurl_closep(&s->hd);
    17651768    av_dict_free(&s->chained_options);
     1769    av_dict_free(&s->cookie_dict);
    17661770    return ret;
    17671771}
    17681772