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
This commit is contained in:
Emanuele Torre 2023-05-19 03:34:07 +02:00 committed by Daniel Stenberg
parent d65321f939
commit fbe23b5797
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -32,6 +32,9 @@ void curl_url_cleanup(CURLU *handle);
.fi .fi
.SH DESCRIPTION .SH DESCRIPTION
Frees all the resources associated with the given \fICURLU\fP handle! 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 .SH EXAMPLE
.nf .nf
CURLU *url = curl_url(); CURLU *url = curl_url();