From: Anthony Minessale Date: Thu, 16 Feb 2012 16:40:56 +0000 (-0600) Subject: revert part of last patch X-Git-Tag: v1.2-rc1~19^2^2~68^2~91 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=90805f6d025f3d422fd136bb9bdcd3ac79acea83;p=thirdparty%2Ffreeswitch.git revert part of last patch --- diff --git a/src/switch_odbc.c b/src/switch_odbc.c index 705587d5ba..24a25cb0af 100644 --- a/src/switch_odbc.c +++ b/src/switch_odbc.c @@ -605,8 +605,10 @@ SWITCH_DECLARE(switch_odbc_status_t) switch_odbc_handle_callback_exec_detailed(c free(vals); } + SQLFreeHandle(SQL_HANDLE_STMT, stmt); + stmt = NULL; /* Make sure we don't try to free this handle again */ + if (!err_cnt) { - SQLFreeHandle(SQL_HANDLE_STMT, stmt); return SWITCH_ODBC_SUCCESS; }