From 04833271d9b76ef7d4719827ca4843a611a48208 Mon Sep 17 00:00:00 2001 From: TheJackiMonster Date: Mon, 22 Nov 2021 15:58:34 +0100 Subject: -fixes two memory leaks Signed-off-by: TheJackiMonster --- src/arm/arm_api.c | 1 + src/messenger/messenger_api_handle.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/arm/arm_api.c b/src/arm/arm_api.c index 5fcbfb0a9..1360ecf14 100644 --- a/src/arm/arm_api.c +++ b/src/arm/arm_api.c @@ -907,6 +907,7 @@ notify_starting (void *cls) op->result_cont (op->cont_cls, GNUNET_ARM_REQUEST_SENT_OK, op->starting_ret); + GNUNET_DISK_file_close(op->rfd); GNUNET_free (op); } diff --git a/src/messenger/messenger_api_handle.c b/src/messenger/messenger_api_handle.c index 516807e13..242389040 100644 --- a/src/messenger/messenger_api_handle.c +++ b/src/messenger/messenger_api_handle.c @@ -98,7 +98,7 @@ destroy_handle (struct GNUNET_MESSENGER_Handle *handle) clear_contact_store(get_handle_contact_store(handle)); - GNUNET_free(handle->name); + GNUNET_free(handle); } void -- cgit v1.2.3