[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet] branch master updated: -fix memory leak
From: |
gnunet |
Subject: |
[gnunet] branch master updated: -fix memory leak |
Date: |
Mon, 09 Aug 2021 15:21:50 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository gnunet.
The following commit(s) were added to refs/heads/master by this push:
new 7bb8e4004 -fix memory leak
7bb8e4004 is described below
commit 7bb8e4004058320917bdae1d6c45de2d3d18d8b0
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Mon Aug 9 15:18:23 2021 +0200
-fix memory leak
---
src/setu/gnunet-service-setu.c | 24 ++++++------------------
1 file changed, 6 insertions(+), 18 deletions(-)
diff --git a/src/setu/gnunet-service-setu.c b/src/setu/gnunet-service-setu.c
index 38027983a..a65db418a 100644
--- a/src/setu/gnunet-service-setu.c
+++ b/src/setu/gnunet-service-setu.c
@@ -4115,26 +4115,20 @@ handle_union_p2p_offer (void *cls,
perf_store.demand.sent += 1;
perf_store.demand.sent_var_bytes += sizeof(struct GNUNET_HashCode);
#endif
- ev = GNUNET_MQ_msg_header_extra (demands,
- sizeof(struct GNUNET_HashCode),
- GNUNET_MESSAGE_TYPE_SETU_P2P_DEMAND);
/* Save send demand message for message control */
if (GNUNET_YES !=
update_message_control_flow (
op->message_control_flow,
MSG_CFS_SENT,
hash,
- DEMAND_MESSAGE)
- )
+ DEMAND_MESSAGE))
{
- // GNUNET_free (ev);
LOG (GNUNET_ERROR_TYPE_ERROR,
"Double demand message sent found!\n");
GNUNET_break (0);
fail_union_operation (op);
return;
}
- ;
/* Mark offer as received received */
if (GNUNET_YES !=
@@ -4142,37 +4136,31 @@ handle_union_p2p_offer (void *cls,
op->message_control_flow,
MSG_CFS_RECEIVED,
hash,
- OFFER_MESSAGE)
- )
+ OFFER_MESSAGE))
{
- // GNUNET_free (ev);
LOG (GNUNET_ERROR_TYPE_ERROR,
"Double offer message received found!\n");
GNUNET_break (0);
fail_union_operation (op);
return;
}
- ;
-
/* Mark element to be expected to received */
if (GNUNET_YES !=
update_message_control_flow (
op->message_control_flow,
MSG_CFS_EXPECTED,
hash,
- ELEMENT_MESSAGE)
- )
+ ELEMENT_MESSAGE))
{
- // GNUNET_free (ev);
LOG (GNUNET_ERROR_TYPE_ERROR,
"Element already expected!\n");
GNUNET_break (0);
fail_union_operation (op);
return;
}
- ;
-
-
+ ev = GNUNET_MQ_msg_header_extra (demands,
+ sizeof(struct GNUNET_HashCode),
+ GNUNET_MESSAGE_TYPE_SETU_P2P_DEMAND);
GNUNET_memcpy (&demands[1],
hash,
sizeof(struct GNUNET_HashCode));
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [gnunet] branch master updated: -fix memory leak,
gnunet <=