• Richard Shaffer's avatar
    libavformat/http: Refactor and fix additional leaks in get_cookies. · c705476c
    Richard Shaffer authored
    This refactors get_cookies to simplify some code paths, specifically for
    skipping logic in the while loop or exiting it. It also simplifies the logic
    for appending additional values to *cookies by replacing strlen/malloc/snprintf
    with one call av_asnprintf.
    
    This refactor fixes a bug where the cookie_params AVDictionary would get leaked
    if we failed to allocate a new buffer for writing to *cookies.
    c705476c
http.c 62.1 KB