]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
revert part of last patch
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 16 Feb 2012 16:40:56 +0000 (10:40 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Thu, 16 Feb 2012 16:40:56 +0000 (10:40 -0600)
src/switch_odbc.c

index 705587d5ba8d13ad4dbbc3920bdf969366de8e8f..24a25cb0afa9624db8607992a43c5a41b0525fb6 100644 (file)
@@ -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;
        }