[asterisk-commits] tilghman: branch 1.4 r78437 - /branches/1.4/res/res_odbc.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Aug 7 14:34:26 CDT 2007


Author: tilghman
Date: Tue Aug  7 14:34:25 2007
New Revision: 78437

URL: http://svn.digium.com/view/asterisk?view=rev&rev=78437
Log:
Don't free the environment handle when the connection fails, because other connections might be depending upon it

Modified:
    branches/1.4/res/res_odbc.c

Modified: branches/1.4/res/res_odbc.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/res/res_odbc.c?view=diff&rev=78437&r1=78436&r2=78437
==============================================================================
--- branches/1.4/res/res_odbc.c (original)
+++ branches/1.4/res/res_odbc.c Tue Aug  7 14:34:25 2007
@@ -483,10 +483,7 @@
 	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;
 	}




More information about the asterisk-commits mailing list