summaryrefslogtreecommitdiff
path: root/lib/url.h
diff options
context:
space:
mode:
authorPatrick Monnerat <patrick@monnerat.net>2017-12-20 19:33:50 +0100
committerPatrick Monnerat <patrick@monnerat.net>2017-12-20 19:33:50 +0100
commitf009bbe1f625b19236dc2ed57726b2f0f39a27c4 (patch)
tree53b31cfeac77d4069e2229d984e15e64ecd9129b /lib/url.h
parent4acc9d3d1a6774f4c00079bdba0fafc51afcbd6a (diff)
downloadcurl-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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/url.h b/lib/url.h
index 5dd04fdff..0fdb8cf28 100644
--- a/lib/url.h
+++ b/lib/url.h
@@ -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);