[asterisk-commits] jpeeler: branch jpeeler/bug13593-2 r180865 - /team/jpeeler/bug13593-2/channel...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Mar 10 14:40:08 CDT 2009


Author: jpeeler
Date: Tue Mar 10 14:40:05 2009
New Revision: 180865

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=180865
Log:
Make sure to use ast_free instead of free. Although astmm.h currently has a define for free, the cstdlib undefines free so ast_free must be used to use the proper debugging version.


Modified:
    team/jpeeler/bug13593-2/channels/h323/ast_h323.cxx

Modified: team/jpeeler/bug13593-2/channels/h323/ast_h323.cxx
URL: http://svn.digium.com/svn-view/asterisk/team/jpeeler/bug13593-2/channels/h323/ast_h323.cxx?view=diff&rev=180865&r1=180864&r2=180865
==============================================================================
--- team/jpeeler/bug13593-2/channels/h323/ast_h323.cxx (original)
+++ team/jpeeler/bug13593-2/channels/h323/ast_h323.cxx Tue Mar 10 14:40:05 2009
@@ -140,8 +140,6 @@
 
 int PAsteriskLog::Buffer::sync()
 {
-	//char *str = strdup(string.ToLiteral());
-	//#undef strdup
 	char *str = ast_strdup(string);
 	char *s, *s1;
 	char c;
@@ -159,7 +157,6 @@
 		*s1 = c;
 	}
 	ast_free(str);
-	//__ast_free(str, "file", 1000, "here");
 
 	string = PString();
 	char *base = string.GetPointer(2000);
@@ -2144,7 +2141,7 @@
 		/* tell the H.323 stack */
 		SetExternalAddress(H323TransportAddress(localIpAddr, localPort), H323TransportAddress(localIpAddr, localPort + 1));
 		/* clean up allocated memory */
-		free(info);
+		ast_free(info);
 	}
 
 	/* Get the payload code	*/
@@ -2391,7 +2388,7 @@
 			endPoint->SetGateway();
 		}
 		if (prefix)
-			free(prefix);
+			ast_free(prefix);
 	}
 	return 0;
 }




More information about the asterisk-commits mailing list