It's probably a good idea to free the result before we check for another.

This commit is contained in:
Eliot Gable 2012-10-09 13:41:16 +00:00
parent f059d97ff8
commit 162181a86f
1 changed files with 1 additions and 0 deletions

View File

@ -653,6 +653,7 @@ SWITCH_DECLARE(switch_pgsql_status_t) switch_pgsql_handle_callback_exec_detailed
free(names);
free(vals);
}
switch_pgsql_free_result(&result);
if (switch_pgsql_next_result(handle, &result) == SWITCH_PGSQL_FAIL) {
err_cnt++;
err_str = switch_pgsql_handle_get_error(handle);