[svn-commits] russell: trunk r91131 - /trunk/res/res_odbc.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Tue Dec 4 21:34:52 CST 2007


Author: russell
Date: Tue Dec  4 21:34:51 2007
New Revision: 91131

URL: http://svn.digium.com/view/asterisk?view=rev&rev=91131
Log:
Use ast_free() instead of free().

(closes issue #11309)
Reported by: Laureano
Patches: 
      res_odbc.c.patch uploaded by Laureano (license 265)

Modified:
    trunk/res/res_odbc.c

Modified: trunk/res/res_odbc.c
URL: http://svn.digium.com/view/asterisk/trunk/res/res_odbc.c?view=diff&rev=91131&r1=91130&r2=91131
==============================================================================
--- trunk/res/res_odbc.c (original)
+++ trunk/res/res_odbc.c Tue Dec  4 21:34:51 2007
@@ -470,7 +470,7 @@
 			if (odbc_obj_connect(obj) == ODBC_FAIL) {
 				ast_log(LOG_WARNING, "Failed to connect to %s\n", name);
 				ast_mutex_destroy(&obj->lock);
-				free(obj);
+				ast_free(obj);
 				obj = NULL;
 				class->count--;
 			} else {




More information about the svn-commits mailing list