diff options
author | Florian Dold <florian.dold@gmail.com> | 2017-02-28 17:26:05 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2017-02-28 17:26:05 +0100 |
commit | c9bc0115c53e10a31ffffb6dbb1cb85e77168dda (patch) | |
tree | 18e9accf94f1b157606a82fada7470cc8a9da376 /src | |
parent | c7df81667de9046ada75fbe15924a426d8b5d765 (diff) | |
download | gnunet-c9bc0115c53e10a31ffffb6dbb1cb85e77168dda.tar.gz gnunet-c9bc0115c53e10a31ffffb6dbb1cb85e77168dda.zip |
set: destroy client mq properly
Diffstat (limited to 'src')
-rw-r--r-- | src/consensus/test_consensus.conf | 2 | ||||
-rw-r--r-- | src/set/gnunet-service-set.c | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/consensus/test_consensus.conf b/src/consensus/test_consensus.conf index f78b77d09..036150b7f 100644 --- a/src/consensus/test_consensus.conf +++ b/src/consensus/test_consensus.conf | |||
@@ -44,7 +44,7 @@ OPTIONS = -LERROR | |||
44 | [set] | 44 | [set] |
45 | #OPTIONS = -L INFO | 45 | #OPTIONS = -L INFO |
46 | #PREFIX = valgrind --leak-check=full | 46 | #PREFIX = valgrind --leak-check=full |
47 | #PREFIX = valgrind | 47 | PREFIX = valgrind |
48 | 48 | ||
49 | [testbed] | 49 | [testbed] |
50 | OVERLAY_TOPOLOGY = CLIQUE | 50 | OVERLAY_TOPOLOGY = CLIQUE |
diff --git a/src/set/gnunet-service-set.c b/src/set/gnunet-service-set.c index 3e6e0791a..4168685f1 100644 --- a/src/set/gnunet-service-set.c +++ b/src/set/gnunet-service-set.c | |||
@@ -223,6 +223,9 @@ listener_destroy (struct Listener *listener) | |||
223 | { | 223 | { |
224 | struct GNUNET_SERVICE_Client *client = listener->client; | 224 | struct GNUNET_SERVICE_Client *client = listener->client; |
225 | 225 | ||
226 | GNUNET_MQ_destroy (listener->client_mq); | ||
227 | listener->client_mq = NULL; | ||
228 | |||
226 | listener->client = NULL; | 229 | listener->client = NULL; |
227 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 230 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
228 | "Disconnecting listener client\n"); | 231 | "Disconnecting listener client\n"); |
@@ -233,7 +236,6 @@ listener_destroy (struct Listener *listener) | |||
233 | GNUNET_CONTAINER_DLL_remove (listeners_head, | 236 | GNUNET_CONTAINER_DLL_remove (listeners_head, |
234 | listeners_tail, | 237 | listeners_tail, |
235 | listener); | 238 | listener); |
236 | *listener = (struct Listener) { 0 }; | ||
237 | GNUNET_free (listener); | 239 | GNUNET_free (listener); |
238 | } | 240 | } |
239 | 241 | ||