diff options
author | Richard Shaffer <rshaffer@tunein.com> | 2018-04-19 12:55:00 -0700 |
---|---|---|
committer | wm4 <nfxjfg@googlemail.com> | 2018-04-19 22:01:51 +0200 |
commit | c705476c4788ab7c5e4c4ee00aab9bbc038cf700 (patch) | |
tree | 495526c541f2c68fe943d22ed7e3a2fdbd4bda86 /libavcodec/cinepak.c | |
parent | b22db4f465c9adb2cf1489e04f7b65ef6bb55b8b (diff) | |
download | ffmpeg-c705476c4788ab7c5e4c4ee00aab9bbc038cf700.tar.gz |
libavformat/http: Refactor and fix additional leaks in get_cookies.
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.
Diffstat (limited to 'libavcodec/cinepak.c')
0 files changed, 0 insertions, 0 deletions