From: Eliot Gable Date: Tue, 9 Oct 2012 13:41:16 +0000 (+0000) Subject: It's probably a good idea to free the result before we check for another. X-Git-Tag: v1.3.0~98 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=162181a86f195f33f849c4d4bed103beb6941b7c;p=thirdparty%2Ffreeswitch.git It's probably a good idea to free the result before we check for another. --- 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);