From: Russell Bryant Date: Wed, 5 Dec 2007 03:34:51 +0000 (+0000) Subject: Use ast_free() instead of free(). X-Git-Tag: 1.6.0-beta1~3^2~544 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3509415be1c5fee5f3827b310dd7c97381fa8747;p=thirdparty%2Fasterisk.git Use ast_free() instead of free(). (closes issue #11309) Reported by: Laureano Patches: res_odbc.c.patch uploaded by Laureano (license 265) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@91131 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/res/res_odbc.c b/res/res_odbc.c index 9cd3de4712..391a20371e 100644 --- a/res/res_odbc.c +++ b/res/res_odbc.c @@ -470,7 +470,7 @@ struct odbc_obj *ast_odbc_request_obj(const char *name, int check) 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 {