From a271b8e2a243df15835ad60653558c585f7c268a Mon Sep 17 00:00:00 2001 From: Martin Schanzenbach Date: Thu, 8 Mar 2012 14:31:34 +0000 Subject: [PATCH] -leak --- src/gns/gnunet-service-gns.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gns/gnunet-service-gns.c b/src/gns/gnunet-service-gns.c index 66a1da224..ce83af60d 100644 --- a/src/gns/gnunet-service-gns.c +++ b/src/gns/gnunet-service-gns.c @@ -398,6 +398,9 @@ reply_to_dns(void* cls, struct GNUNET_GNS_ResolverHandle *rh, uint32_t rd_count, static void shutdown_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) { + + GNUNET_log(GNUNET_ERROR_TYPE_DEBUG, + "Shutting down!"); /* Kill zone task for it may make the scheduler hang */ if (zone_update_taskid) GNUNET_SCHEDULER_cancel(zone_update_taskid); @@ -2175,6 +2178,7 @@ send_shorten_response(const char* name, struct ClientShortenHandle *csh) GNUNET_SERVER_receive_done (csh->client, GNUNET_OK); GNUNET_free(rmsg); + GNUNET_free(csh->name); GNUNET_free(csh); } -- 2.25.1