[Asterisk-cvs] asterisk/res res_odbc.c,1.7,1.8

markster at lists.digium.com markster at lists.digium.com
Sun Oct 31 18:14:31 CST 2004


Update of /usr/cvsroot/asterisk/res
In directory mongoose.digium.com:/tmp/cvs-serv16778/res

Modified Files:
	res_odbc.c 
Log Message:
Misc code fixes (bug #2762)


Index: res_odbc.c
===================================================================
RCS file: /usr/cvsroot/asterisk/res/res_odbc.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- res_odbc.c	23 Oct 2004 07:03:01 -0000	1.7
+++ res_odbc.c	31 Oct 2004 23:17:11 -0000	1.8
@@ -351,6 +351,7 @@
 	if ((res != SQL_SUCCESS) && (res != SQL_SUCCESS_WITH_INFO)) {
 		SQLGetDiagRec(SQL_HANDLE_DBC, obj->con, 1, stat, &err, msg, 100, &mlen);
 		SQLFreeHandle(SQL_HANDLE_ENV, obj->env);
+		ast_mutex_unlock(&obj->lock);
 		ast_log(LOG_WARNING, "res_odbc: Error SQLConnect=%d errno=%ld %s\n", res, err, msg);
 		return ODBC_FAIL;
 	} else {




More information about the svn-commits mailing list