[Freeswitch-svn] [commit] r7442 - freeswitch/trunk/libs/curl/lib

Freeswitch SVN mikej at freeswitch.org
Wed Jan 30 21:07:05 EST 2008


Author: mikej
Date: Wed Jan 30 21:07:05 2008
New Revision: 7442

Modified:
   freeswitch/trunk/libs/curl/lib/url.c
   freeswitch/trunk/libs/curl/lib/url.h

Log:
a bit safer free.

Modified: freeswitch/trunk/libs/curl/lib/url.c
==============================================================================
--- freeswitch/trunk/libs/curl/lib/url.c	(original)
+++ freeswitch/trunk/libs/curl/lib/url.c	Wed Jan 30 21:07:05 2008
@@ -200,7 +200,7 @@
 #endif /* WIN32 */
 #endif /* USE_ARES */
 
-void Curl_safefree(void *ptr)
+void Curl_safefree_x(void *ptr)
 {
   if(ptr)
     free(ptr);

Modified: freeswitch/trunk/libs/curl/lib/url.h
==============================================================================
--- freeswitch/trunk/libs/curl/lib/url.h	(original)
+++ freeswitch/trunk/libs/curl/lib/url.h	Wed Jan 30 21:07:05 2008
@@ -44,7 +44,8 @@
 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);



More information about the Freeswitch-svn mailing list