aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/cinepak.c
diff options
context:
space:
mode:
authorRichard Shaffer <rshaffer@tunein.com>2018-04-19 12:55:00 -0700
committerwm4 <nfxjfg@googlemail.com>2018-04-19 22:01:51 +0200
commitc705476c4788ab7c5e4c4ee00aab9bbc038cf700 (patch)
tree495526c541f2c68fe943d22ed7e3a2fdbd4bda86 /libavcodec/cinepak.c
parentb22db4f465c9adb2cf1489e04f7b65ef6bb55b8b (diff)
downloadffmpeg-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