[asterisk-addons-commits] tilghman: trunk r488 - /trunk/cdr_addon_mysql.c

SVN commits to the Asterisk addons project asterisk-addons-commits at lists.digium.com
Fri Nov 23 13:18:10 CST 2007


Author: tilghman
Date: Fri Nov 23 13:18:10 2007
New Revision: 488

URL: http://svn.digium.com/view/asterisk-addons?view=rev&rev=488
Log:
Match up ast_free with ast_calloc.
Reported by: Laureano
Patch by: Laureano
(Closes issue #11358)

Modified:
    trunk/cdr_addon_mysql.c

Modified: trunk/cdr_addon_mysql.c
URL: http://svn.digium.com/view/asterisk-addons/trunk/cdr_addon_mysql.c?view=diff&rev=488&r1=487&r2=488
==============================================================================
--- trunk/cdr_addon_mysql.c (original)
+++ trunk/cdr_addon_mysql.c Fri Nov 23 13:18:10 2007
@@ -288,8 +288,8 @@
 
 	AST_LIST_LOCK(&unload_strings);
 	while ((us = AST_LIST_REMOVE_HEAD(&unload_strings, entry))) {
-		free(us->str);
-		free(us);
+		ast_free(us->str);
+		ast_free(us);
 	}
 	AST_LIST_UNLOCK(&unload_strings);
 	
@@ -308,7 +308,7 @@
 		return -1;
 
 	if (!(*field = ast_str_create(16))) {
-		free(us);
+		ast_free(us);
 		return -1;
 	}
 




More information about the asterisk-addons-commits mailing list