aboutsummaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-12-05 03:34:51 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-12-05 03:34:51 +0000
commitf6119129824dea4378f8de2f5cec89aefa27b892 (patch)
treeb1e78868d0b2573889ebfd682de4f1624bfed281 /res
parent2e316c898ea4619a5485e77b5c255cce6ad3f8c1 (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: http://svn.digium.com/svn/asterisk/trunk@91131 f38db490-d61c-443f-a65b-d21fe96a405b
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 {