提交 162181a8 authored 作者: Eliot Gable's avatar Eliot Gable

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

上级 f059d97f
...@@ -653,6 +653,7 @@ SWITCH_DECLARE(switch_pgsql_status_t) switch_pgsql_handle_callback_exec_detailed ...@@ -653,6 +653,7 @@ SWITCH_DECLARE(switch_pgsql_status_t) switch_pgsql_handle_callback_exec_detailed
free(names); free(names);
free(vals); free(vals);
} }
switch_pgsql_free_result(&result);
if (switch_pgsql_next_result(handle, &result) == SWITCH_PGSQL_FAIL) { if (switch_pgsql_next_result(handle, &result) == SWITCH_PGSQL_FAIL) {
err_cnt++; err_cnt++;
err_str = switch_pgsql_handle_get_error(handle); err_str = switch_pgsql_handle_get_error(handle);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论