From aafbe089a88c42bf81ff8cf868f20263661ad3e4 Mon Sep 17 00:00:00 2001 From: Stefan Eissing Date: Fri, 15 May 2026 14:56:24 +0200 Subject: [PATCH] CURLOPT_SHARE: warn about early remove Add a warning to removing a SHARE from an EASY handle before it is finished. Closes #21633 --- docs/libcurl/opts/CURLOPT_SHARE.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/libcurl/opts/CURLOPT_SHARE.md b/docs/libcurl/opts/CURLOPT_SHARE.md index 2c6a496593..907e4f2805 100644 --- a/docs/libcurl/opts/CURLOPT_SHARE.md +++ b/docs/libcurl/opts/CURLOPT_SHARE.md @@ -43,6 +43,9 @@ if no share was used. Set this option to NULL again to stop using that share object. +Warning: adding a *share* and then setting it to NULL while the transfer +is ongoing is discouraged and may lead to undefined behavior. + # DEFAULT NULL