[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnunet] branch master updated: fix UDP memory leak
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnunet] branch master updated: fix UDP memory leak |
Date: |
Thu, 04 Jan 2018 21:43:41 +0100 |
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 d7d5c67e4 fix UDP memory leak
d7d5c67e4 is described below
commit d7d5c67e4f3029047c81e85340c5e4d99033514c
Author: Christian Grothoff <address@hidden>
AuthorDate: Thu Jan 4 21:43:39 2018 +0100
fix UDP memory leak
---
src/transport/plugin_transport_udp.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/transport/plugin_transport_udp.c
b/src/transport/plugin_transport_udp.c
index 1ff962544..f214e7be4 100644
--- a/src/transport/plugin_transport_udp.c
+++ b/src/transport/plugin_transport_udp.c
@@ -1631,6 +1631,7 @@ enqueue (struct Plugin *plugin,
if (GNUNET_YES == session->in_destroy)
{
GNUNET_break (0);
+ GNUNET_free (udpw);
return;
}
if (plugin->bytes_in_buffer > INT64_MAX - udpw->msg_size)
@@ -1913,8 +1914,8 @@ enqueue_fragment (void *cls,
udpw->qc = &qc_fragment_sent;
udpw->qc_cls = plugin;
GNUNET_memcpy (udpw->msg_buf,
- msg,
- msg_len);
+ msg,
+ msg_len);
enqueue (plugin,
udpw);
if (session->address->address_length == sizeof (struct IPv4UdpAddress))
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [gnunet] branch master updated: fix UDP memory leak,
gnunet <=