[FFmpeg-cvslog] libavformat/http: Fix memory leak in get_cookies.
Richard Shaffer
git at videolan.org
Tue Apr 17 23:04:07 EEST 2018
ffmpeg | branch: master | Richard Shaffer <rshaffer at tunein.com> | Fri Apr 13 16:42:32 2018 -0700| [9a8811f478db4c24e9acb597274c5feace11f364] | committer: wm4
libavformat/http: Fix memory leak in get_cookies.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9a8811f478db4c24e9acb597274c5feace11f364
---
libavformat/http.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavformat/http.c b/libavformat/http.c
index 983034f083..b4a1919f24 100644
--- a/libavformat/http.c
+++ b/libavformat/http.c
@@ -1103,6 +1103,7 @@ static int get_cookies(HTTPContext *s, char **cookies, const char *path,
snprintf(*cookies, str_size, "%s; %s=%s", tmp, cookie_entry->key, cookie_entry->value);
av_free(tmp);
}
+ av_dict_free(&cookie_params);
}
av_free(set_cookies);
More information about the ffmpeg-cvslog
mailing list