- explain its purpose in a comment
Closes #17287
#endif /* UNICODE && _WIN32 */
-#define curlx_unicodefree(ptr) \
- do { \
- if(ptr) { \
- (free)(CURL_UNCONST(ptr)); \
- (ptr) = NULL; \
- } \
- } while(0)
+/* the purpose of this macro is to free() without being traced by memdebug */
+#define curlx_unicodefree(ptr) (free)(CURL_UNCONST(ptr))
#endif /* HEADER_CURL_MULTIBYTE_H */
&used, global, config);
}
- if(!result)
+ if(!result) {
unicodefree(orig_opt);
+ orig_opt = NULL;
+ }
}
if(!result && config->content_disposition) {