]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
curl_url_set.3: add memory management information
authorJohann150 <johann.galle@protonmail.com>
Sat, 24 Apr 2021 15:13:07 +0000 (17:13 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 25 Apr 2021 12:13:29 +0000 (14:13 +0200)
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

docs/libcurl/curl_url_set.3

index 88139bd2c6e8697b75c0e905d04ee9f9bb413a76..8d77a8a0310618c525de92e01512f92c92500c27 100644 (file)
@@ -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.