summaryrefslogtreecommitdiff
path: root/src/messenger/gnunet-service-messenger_operation_store.c
diff options
context:
space:
mode:
authorTheJackiMonster <thejackimonster@gmail.com>2021-03-29 23:52:28 +0200
committerTheJackiMonster <thejackimonster@gmail.com>2021-03-29 23:52:28 +0200
commitd8b32bc60d26a8a30b71530af0bd3e9e037e073b (patch)
treee62d5396fdf79faec5c97e55a75ee0ec4fe8fc3b /src/messenger/gnunet-service-messenger_operation_store.c
parent29be7985d06482beec4304b0f2eb57f23b6ec84d (diff)
-fixed multiple leaks in messenger
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
Diffstat (limited to 'src/messenger/gnunet-service-messenger_operation_store.c')
-rwxr-xr-x[-rw-r--r--]src/messenger/gnunet-service-messenger_operation_store.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/messenger/gnunet-service-messenger_operation_store.c b/src/messenger/gnunet-service-messenger_operation_store.c
index 05985ef84..a32fbad2c 100644..100755
--- a/src/messenger/gnunet-service-messenger_operation_store.c
+++ b/src/messenger/gnunet-service-messenger_operation_store.c
@@ -184,7 +184,9 @@ cancel_store_operation (struct GNUNET_MESSENGER_OperationStore *store,
stop_operation(op);
- GNUNET_CONTAINER_multihashmap_remove(store->operations, hash, op);
+ if (GNUNET_YES != GNUNET_CONTAINER_multihashmap_remove(store->operations, hash, op))
+ GNUNET_log(GNUNET_ERROR_TYPE_WARNING, "Canceled operation could not be removed: %s\n",
+ GNUNET_h2s(hash));
destroy_operation(op);
}