]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
curl_setup.h: drop superfluous parenthesis from `Curl_safefree` macro
authorViktor Szakats <commit@vsz.me>
Thu, 27 Nov 2025 19:08:43 +0000 (20:08 +0100)
committerViktor Szakats <commit@vsz.me>
Thu, 27 Nov 2025 19:33:05 +0000 (20:33 +0100)
Cherry-picked from #19626
Closes #19734

lib/curl_setup.h

index 48b9ea9ea9f93ad6aacc5a60cfe7470b03c4fb97..6236a71539236eed2a35965eaabe6db082aa0d68 100644 (file)
@@ -941,7 +941,7 @@ extern curl_calloc_callback Curl_ccalloc;
  * This macro also assigns NULL to given pointer when free'd.
  */
 #define Curl_safefree(ptr) \
-  do { free((ptr)); (ptr) = NULL;} while(0)
+  do { free(ptr); (ptr) = NULL;} while(0)
 
 #include <curl/curl.h> /* for CURL_EXTERN, mprintf.h */