]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
It's probably a good idea to free the result before we check for another.
authorEliot Gable <egable@gmail.com>
Tue, 9 Oct 2012 13:41:16 +0000 (13:41 +0000)
committerEliot Gable <egable@gmail.com>
Tue, 9 Oct 2012 13:41:16 +0000 (13:41 +0000)
src/switch_pgsql.c

index fc02ab73d573b50ef0ab7425506c69834c894b18..8eea3811a8e5febc341eb67538817740abdd635c 100644 (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);