diff --git a/cel/cel_pgsql.c b/cel/cel_pgsql.c index 99374a824e..e3c682b604 100644 --- a/cel/cel_pgsql.c +++ b/cel/cel_pgsql.c @@ -321,6 +321,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);