summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohann150 <johann.galle@protonmail.com>2021-04-24 17:13:07 +0200
committerDaniel Stenberg <daniel@haxx.se>2021-04-25 14:13:29 +0200
commit68f6c56396aa7afb9b732f28f5b1e881247a2d03 (patch)
tree251310c4b6b9d04e4d5ceeb39936953c6c6b538b
parent5e7fc49c19b86eab094727f43aa48825e1f50829 (diff)
downloadcurl-68f6c56396aa7afb9b732f28f5b1e881247a2d03.tar.gz
curl_url_set.3: add memory management information
wording taken from man page for CURLOPT_URL.3 As far as I can see, the URL part is either malloc'ed before due to encoding or it is strdup'ed. Closes #6953
-rw-r--r--docs/libcurl/curl_url_set.33
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/libcurl/curl_url_set.3 b/docs/libcurl/curl_url_set.3
index 88139bd2c..8d77a8a03 100644
--- a/docs/libcurl/curl_url_set.3
+++ b/docs/libcurl/curl_url_set.3
@@ -39,6 +39,9 @@ below) to set or change, with \fIcontent\fP pointing to a null-terminated
string with the new contents for that URL part. The contents should be in the
form and encoding they'd use in a URL: URL encoded.
+The application does not have to keep \fIcontent\fP around after a successful
+call.
+
Setting a part to a NULL pointer will effectively remove that part's contents
from the CURLU handle.