From 98fab52b74ea9cbf7bdac7a022504fc6be90be88 Mon Sep 17 00:00:00 2001 From: Alejandro Sirgo Rica Date: Tue, 18 Jun 2024 11:20:14 +0200 Subject: rest: fix memory leak in folder/delete Free dbi result after use in og_delete_computer_folder(). --- src/rest.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/rest.c b/src/rest.c index 530d667..d8bb773 100644 --- a/src/rest.c +++ b/src/rest.c @@ -2379,6 +2379,8 @@ static int og_delete_computer_folder(struct og_dbi *dbi, uint32_t folder_id) return -1; } + dbi_result_free(result); + result = dbi_conn_queryf(dbi->conn, "DELETE FROM ordenadores " "WHERE grupoid=%u", -- cgit v1.2.3-18-g5258