a bit safer free.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7442 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
ec56c92350
commit
03c710b660
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue