diff options
author | Patrick Monnerat <patrick@monnerat.net> | 2017-12-20 19:33:50 +0100 |
---|---|---|
committer | Patrick Monnerat <patrick@monnerat.net> | 2017-12-20 19:33:50 +0100 |
commit | f009bbe1f625b19236dc2ed57726b2f0f39a27c4 (patch) | |
tree | 53b31cfeac77d4069e2229d984e15e64ecd9129b /lib/url.h | |
parent | 4acc9d3d1a6774f4c00079bdba0fafc51afcbd6a (diff) | |
download | curl-f009bbe1f625b19236dc2ed57726b2f0f39a27c4.tar.gz |
curl_easy_reset: release mime-related data.
Move curl_mime_initpart() and curl_mime_cleanpart() calls to lower-level
functions dealing with UserDefined structure contents.
This avoids memory leakages on curl-generated part mime headers.
New test 2073 checks this using the cli tool --next option: it
triggers a valgrind error if bug is present.
Bug: https://curl.haxx.se/mail/lib-2017-12/0060.html
Reported-by: Martin Galvan
Diffstat (limited to 'lib/url.h')
-rw-r--r-- | lib/url.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -33,7 +33,7 @@ CURLcode Curl_init_do(struct Curl_easy *data, struct connectdata *conn); CURLcode Curl_open(struct Curl_easy **curl); -CURLcode Curl_init_userdefined(struct UserDefined *set); +CURLcode Curl_init_userdefined(struct Curl_easy *data); CURLcode Curl_setopt(struct Curl_easy *data, CURLoption option, va_list arg); CURLcode Curl_dupset(struct Curl_easy * dst, struct Curl_easy * src); |