aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheJackiMonster <thejackimonster@gmail.com>2021-11-22 15:58:34 +0100
committerTheJackiMonster <thejackimonster@gmail.com>2021-11-22 15:58:34 +0100
commit04833271d9b76ef7d4719827ca4843a611a48208 (patch)
tree77147c4979f398f70397c6dd93e1ade770097b7d
parentb57f92ee938794a862c93c3dcc5cd47f061c4cb4 (diff)
downloadgnunet-04833271d9b76ef7d4719827ca4843a611a48208.tar.gz
gnunet-04833271d9b76ef7d4719827ca4843a611a48208.zip
-fixes two memory leaks
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
-rw-r--r--src/arm/arm_api.c1
-rw-r--r--src/messenger/messenger_api_handle.c2
2 files changed, 2 insertions, 1 deletions
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)
907 op->result_cont (op->cont_cls, 907 op->result_cont (op->cont_cls,
908 GNUNET_ARM_REQUEST_SENT_OK, 908 GNUNET_ARM_REQUEST_SENT_OK,
909 op->starting_ret); 909 op->starting_ret);
910 GNUNET_DISK_file_close(op->rfd);
910 GNUNET_free (op); 911 GNUNET_free (op);
911} 912}
912 913
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)
98 98
99 clear_contact_store(get_handle_contact_store(handle)); 99 clear_contact_store(get_handle_contact_store(handle));
100 100
101 GNUNET_free(handle->name); 101 GNUNET_free(handle);
102} 102}
103 103
104void 104void