summaryrefslogtreecommitdiff
path: root/res
diff options
context:
space:
mode:
authorRussell Bryant <russell@russellbryant.com>2007-12-05 03:34:51 +0000
committerRussell Bryant <russell@russellbryant.com>2007-12-05 03:34:51 +0000
commit3509415be1c5fee5f3827b310dd7c97381fa8747 (patch)
treeb1e78868d0b2573889ebfd682de4f1624bfed281 /res
parent5c56fa7fb73d51f676dc30ee8f0902925eddb548 (diff)
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
Diffstat (limited to 'res')
-rw-r--r--res/res_odbc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_odbc.c b/res/res_odbc.c
index 9cd3de471..391a20371 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 {