aboutsummaryrefslogtreecommitdiff
path: root/src/util/test_service.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/test_service.c')
-rw-r--r--src/util/test_service.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/util/test_service.c b/src/util/test_service.c
index 3ffacb0a9..424a445bb 100644
--- a/src/util/test_service.c
+++ b/src/util/test_service.c
@@ -52,8 +52,11 @@ handle_recv (void *cls,
52 "Received client message...\n"); 52 "Received client message...\n");
53 GNUNET_SERVICE_client_continue (client); 53 GNUNET_SERVICE_client_continue (client);
54 global_ret = 2; 54 global_ret = 2;
55 GNUNET_MQ_destroy (mq); 55 if (NULL != mq)
56 mq = NULL; 56 {
57 GNUNET_MQ_destroy (mq);
58 mq = NULL;
59 }
57} 60}
58 61
59 62
@@ -106,6 +109,11 @@ static void
106timeout_task (void *cls) 109timeout_task (void *cls)
107{ 110{
108 tt = NULL; 111 tt = NULL;
112 if (NULL != mq)
113 {
114 GNUNET_MQ_destroy (mq);
115 mq = NULL;
116 }
109 global_ret = 33; 117 global_ret = 33;
110 GNUNET_SCHEDULER_shutdown (); 118 GNUNET_SCHEDULER_shutdown ();
111} 119}