summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlejandro Sirgo Rica <asirgo@soleta.eu>2024-06-18 11:20:14 +0200
committerAlejandro Sirgo Rica <asirgo@soleta.eu>2024-06-18 11:22:21 +0200
commit98fab52b74ea9cbf7bdac7a022504fc6be90be88 (patch)
tree289e8c1d40300b2e62920d52bbad77665ca24ba5
parent86beb111d4a5496f9ab2799733421ea75822d1a6 (diff)
rest: fix memory leak in folder/delete
Free dbi result after use in og_delete_computer_folder().
-rw-r--r--src/rest.c2
1 files changed, 2 insertions, 0 deletions
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",