From fbe23b5797e389816d790787dee7027c6e9ae70e Mon Sep 17 00:00:00 2001 From: Emanuele Torre Date: Fri, 19 May 2023 03:34:07 +0200 Subject: [PATCH] docs: document that curl_url_cleanup(NULL) is a safe no-op This has always been the case, but it was not documented. The paragraph was copied verbatim from curl_easy_cleanup.3 Closes #11150 --- docs/libcurl/curl_url_cleanup.3 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/libcurl/curl_url_cleanup.3 b/docs/libcurl/curl_url_cleanup.3 index f483d3a94e..2e32668e6d 100644 --- a/docs/libcurl/curl_url_cleanup.3 +++ b/docs/libcurl/curl_url_cleanup.3 @@ -32,6 +32,9 @@ void curl_url_cleanup(CURLU *handle); .fi .SH DESCRIPTION Frees all the resources associated with the given \fICURLU\fP handle! + +Passing in a NULL pointer in \fIhandle\fP will make this function return +immediately with no action. .SH EXAMPLE .nf CURLU *url = curl_url();