From 3346d105170abdf1a7e958d8f2c3b59ca036f2b8 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Fri, 19 Jul 2013 11:14:18 +0000 Subject: [PATCH] -fixed memory leak --- src/set/gnunet-service-set.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/set/gnunet-service-set.c b/src/set/gnunet-service-set.c index c25c2cbad..86624402a 100644 --- a/src/set/gnunet-service-set.c +++ b/src/set/gnunet-service-set.c @@ -477,7 +477,6 @@ handle_client_create (void *cls, return; } - set = NULL; set = GNUNET_new (struct Set); switch (ntohs (msg->operation)) @@ -489,6 +488,7 @@ handle_client_create (void *cls, set->vt = _GSS_union_vt (); break; default: + GNUNET_free (set); GNUNET_break (0); GNUNET_SERVER_client_disconnect (client); return; -- 2.25.1