mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-23 01:38:31 +00:00
It's probably a good idea to free the result before we check for another.
This commit is contained in:
1 parent
f059d97ff8
commit
162181a86f
1 file changed
+1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user