[asterisk-commits] tilghman: trunk r115525 - /trunk/res/res_odbc.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed May 7 13:40:21 CDT 2008


Author: tilghman
Date: Wed May  7 13:40:21 2008
New Revision: 115525

URL: http://svn.digium.com/view/asterisk?view=rev&rev=115525
Log:
Don't free the object on destroy, as astobj2 takes care of that for you

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=115525&r1=115524&r2=115525
==============================================================================
--- trunk/res/res_odbc.c (original)
+++ trunk/res/res_odbc.c Wed May  7 13:40:21 2008
@@ -100,7 +100,6 @@
 	odbc_obj_disconnect(obj);
 	ast_mutex_destroy(&obj->lock);
 	ao2_ref(obj->parent, -1);
-	ast_free(obj);
 }
 
 SQLHSTMT ast_odbc_direct_execute(struct odbc_obj *obj, SQLHSTMT (*exec_cb)(struct odbc_obj *obj, void *data), void *data)




More information about the asterisk-commits mailing list