diff --git a/cel/cel_pgsql.c b/cel/cel_pgsql.c index f7676f88ea..5885a1d32b 100644 --- a/cel/cel_pgsql.c +++ b/cel/cel_pgsql.c @@ -332,6 +332,7 @@ static void pgsql_log(const struct ast_event *event, void *userdata) PQclear(result); goto ast_log_cleanup; } + PQclear(result); ast_log_cleanup: ast_free(sql);