Don't free the object on destroy, as astobj2 takes care of that for you
authorTilghman Lesher <tilghman@meg.abyt.es>
Wed, 7 May 2008 18:40:21 +0000 (18:40 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Wed, 7 May 2008 18:40:21 +0000 (18:40 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@115525 65c4cc65-6c06-0410-ace0-fbb531ad65f3

res/res_odbc.c

index 701af58..b685d04 100644 (file)
@@ -100,7 +100,6 @@ static void odbc_obj_destructor(void *data)
        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)