From 162181a86f195f33f849c4d4bed103beb6941b7c Mon Sep 17 00:00:00 2001 From: Eliot Gable Date: Tue, 9 Oct 2012 13:41:16 +0000 Subject: [PATCH] It's probably a good idea to free the result before we check for another. --- src/switch_pgsql.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/switch_pgsql.c b/src/switch_pgsql.c index fc02ab73d5..8eea3811a8 100644 --- a/src/switch_pgsql.c +++ b/src/switch_pgsql.c @@ -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);