From 68f6c56396aa7afb9b732f28f5b1e881247a2d03 Mon Sep 17 00:00:00 2001 From: Johann150 Date: Sat, 24 Apr 2021 17:13:07 +0200 Subject: [PATCH] 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 --- docs/libcurl/curl_url_set.3 | 3 +++ 1 file changed, 3 insertions(+) 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.