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:
Michael Jerris 2008-01-31 02:07:05 +00:00
parent ec56c92350
commit 03c710b660
2 changed files with 3 additions and 2 deletions

View File

@ -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);

View File

@ -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);