diff --git a/libs/curl/lib/url.c b/libs/curl/lib/url.c index 4fcc18aa99..1e1ff3cc6d 100644 --- a/libs/curl/lib/url.c +++ b/libs/curl/lib/url.c @@ -200,7 +200,7 @@ RETSIGTYPE alarmfunc(int sig) #endif /* WIN32 */ #endif /* USE_ARES */ -void Curl_safefree(void *ptr) +void Curl_safefree_x(void *ptr) { if(ptr) free(ptr); diff --git a/libs/curl/lib/url.h b/libs/curl/lib/url.h index b9bfabf82b..668b444069 100644 --- a/libs/curl/lib/url.h +++ b/libs/curl/lib/url.h @@ -44,7 +44,8 @@ CURLcode Curl_disconnect(struct connectdata *); CURLcode Curl_protocol_connect(struct connectdata *conn, bool *done); CURLcode Curl_protocol_connecting(struct connectdata *conn, bool *done); CURLcode Curl_protocol_doing(struct connectdata *conn, bool *done); -void Curl_safefree(void *ptr); +void Curl_safefree_x(void *ptr); +#define Curl_safefree(ptr) Curl_safefree_x(ptr), ptr = NULL /* create a connection cache */ struct conncache *Curl_mk_connc(int type);