#endif /* UNICODE && _WIN32 */
/* the purpose of this macro is to free() without being traced by memdebug */
-#define curlx_unicodefree(ptr) (free)(CURL_UNCONST(ptr))
+#define curlx_unicodefree(ptr) (free)(ptr)
#endif /* HEADER_CURL_MULTIBYTE_H */
if(i < (argc - 1)) {
nextarg = convert_tchar_to_UTF8(argv[i + 1]);
if(!nextarg) {
- unicodefree(orig_opt);
+ unicodefree(CURL_UNCONST(orig_opt));
return PARAM_NO_MEM;
}
}
result = getparameter(orig_opt, nextarg, &passarg, config,
CONFIG_MAX_LEVELS);
- unicodefree(nextarg);
+ unicodefree(CURL_UNCONST(nextarg));
config = global->last;
if(result == PARAM_NEXT_OPERATION) {
/* Reset result as PARAM_NEXT_OPERATION is only used here and not
}
if(!result) {
- unicodefree(orig_opt);
+ unicodefree(CURL_UNCONST(orig_opt));
orig_opt = NULL;
}
}
helpf("%s", reason);
}
- unicodefree(orig_opt);
+ unicodefree(CURL_UNCONST(orig_opt));
return result;
}