From c4d71193a5a520328e508b9c08b2e1130b80ac7c Mon Sep 17 00:00:00 2001 From: Alejandro Sirgo Rica Date: Mon, 10 Jun 2024 09:37:29 +0200 Subject: rest: fix memory leak in client/update Free dbi result after use in og_cmd_post_client_update(). --- src/rest.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/rest.c b/src/rest.c index ec1dda6..b50c423 100644 --- a/src/rest.c +++ b/src/rest.c @@ -1986,6 +1986,9 @@ static int og_cmd_post_client_update(json_t *element, og_dbi_close(dbi); return -1; } + + dbi_result_free(result); + result = dbi_conn_queryf(dbi->conn, "UPDATE ordenadores" " SET numserie='%s'," -- cgit v1.2.3-18-g5258