diff options
author | Alejandro Sirgo Rica <asirgo@soleta.eu> | 2024-06-18 11:20:14 +0200 |
---|---|---|
committer | Alejandro Sirgo Rica <asirgo@soleta.eu> | 2024-06-18 11:22:21 +0200 |
commit | 98fab52b74ea9cbf7bdac7a022504fc6be90be88 (patch) | |
tree | 289e8c1d40300b2e62920d52bbad77665ca24ba5 /src/rest.c | |
parent | 86beb111d4a5496f9ab2799733421ea75822d1a6 (diff) |
rest: fix memory leak in folder/delete
Free dbi result after use in og_delete_computer_folder().
Diffstat (limited to 'src/rest.c')
-rw-r--r-- | src/rest.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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", |