]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
curl_easy_cleanup.3: remove from multi handle first
authorDaniel Stenberg <daniel@haxx.se>
Wed, 10 Nov 2021 07:41:51 +0000 (08:41 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 10 Nov 2021 14:01:36 +0000 (15:01 +0100)
Easy handles that are used by the multi interface should be removed from
the multi handle before they are cleaned up.

Reported-by: Stephen M. Coakley
Ref: #7982
Closes #7983

docs/libcurl/curl_easy_cleanup.3

index 3c342562420b77fefa9e6e3d23f1f998f46c40e5..c62f4e073b740b26e1bf09b1aa3dbb953eedbfa0 100644 (file)
@@ -47,6 +47,10 @@ Any use of the \fBhandle\fP after this function has been called and have
 returned, is illegal. \fIcurl_easy_cleanup(3)\fP kills the handle and all
 memory associated with it!
 
+To close an easy handle that has been used with the multi interface, make sure
+to call \fIcurl_multi_remove_handle(3)\fP first to remove it from the multi
+handle before it is closed.
+
 Passing in a NULL pointer in \fIhandle\fP will make this function return
 immediately with no action.
 .SH EXAMPLE