[asterisk-commits] russell: branch 1.8 r283350 - /branches/1.8/funcs/func_odbc.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Aug 24 07:49:44 CDT 2010


Author: russell
Date: Tue Aug 24 07:49:41 2010
New Revision: 283350

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=283350
Log:
Don't attempt to release a NULL ODBC handle.

Modified:
    branches/1.8/funcs/func_odbc.c

Modified: branches/1.8/funcs/func_odbc.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/funcs/func_odbc.c?view=diff&rev=283350&r1=283349&r2=283350
==============================================================================
--- branches/1.8/funcs/func_odbc.c (original)
+++ branches/1.8/funcs/func_odbc.c Tue Aug 24 07:49:41 2010
@@ -502,8 +502,10 @@
 		if (stmt) {
 			break;
 		}
-		ast_odbc_release_obj(obj);
-		obj = NULL;
+		if (obj) {
+			ast_odbc_release_obj(obj);
+			obj = NULL;
+		}
 	}
 
 	if (!stmt) {




More information about the asterisk-commits mailing list