aboutsummaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2007-08-07 19:34:25 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2007-08-07 19:34:25 +0000
commit94428e1ef29982bfd1b20d830cc9f522b3a6aea7 (patch)
treee920bb806748c160887a6c7eb400fc743021f709 /res
parente9b4c1bd94123c2fa9826b2c284ea2ed9bf9dff9 (diff)
Don't free the environment handle when the connection fails, because other connections might be depending upon it
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@78437 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res')
-rw-r--r--res/res_odbc.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/res/res_odbc.c b/res/res_odbc.c
index c6d796f56..e523b9819 100644
--- a/res/res_odbc.c
+++ b/res/res_odbc.c
@@ -483,10 +483,7 @@ static odbc_status odbc_obj_connect(struct odbc_obj *obj)
res = SQLAllocHandle(SQL_HANDLE_DBC, obj->parent->env, &obj->con);
if ((res != SQL_SUCCESS) && (res != SQL_SUCCESS_WITH_INFO)) {
-
ast_log(LOG_WARNING, "res_odbc: Error AllocHDB %d\n", res);
- SQLFreeHandle(SQL_HANDLE_ENV, obj->parent->env);
-
ast_mutex_unlock(&obj->lock);
return ODBC_FAIL;
}