summaryrefslogtreecommitdiff
path: root/res
diff options
context:
space:
mode:
authorTilghman Lesher <tilghman@meg.abyt.es>2007-08-07 19:36:17 +0000
committerTilghman Lesher <tilghman@meg.abyt.es>2007-08-07 19:36:17 +0000
commit72cc1dcfea226ec19c260494a07cc6d571af47e6 (patch)
tree36a012345b5699246f85c6d1f7689062b1bd0f95 /res
parent12f237ca4f007fb6339f38c6df20136d7b624942 (diff)
Merged revisions 78437 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r78437 | tilghman | 2007-08-07 14:34:25 -0500 (Tue, 07 Aug 2007) | 2 lines Don't free the environment handle when the connection fails, because other connections might be depending upon it ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@78442 65c4cc65-6c06-0410-ace0-fbb531ad65f3
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 56773f93b..c46029f02 100644
--- a/res/res_odbc.c
+++ b/res/res_odbc.c
@@ -486,10 +486,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;
}