From e537bb14c1b23deefe1df7fd07905b1f318c87c7 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 10 May 2012 13:11:49 +0000 Subject: [PATCH] -fix leak --- src/gns/gnunet-gns.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gns/gnunet-gns.c b/src/gns/gnunet-gns.c index 7695f4213..bb256dadf 100644 --- a/src/gns/gnunet-gns.c +++ b/src/gns/gnunet-gns.c @@ -166,7 +166,6 @@ run (void *cls, char *const *args, const char *cfgfile, GNUNET_CRYPTO_short_hash(&pkey, sizeof(struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded), &user_zone); - GNUNET_free(keyfile); zone = &user_zone; GNUNET_CRYPTO_short_hash_to_enc (zone, &zonename); printf("asdsad\n"); @@ -175,6 +174,7 @@ run (void *cls, char *const *args, const char *cfgfile, "Using zone: %s!\n", &zonename); GNUNET_CRYPTO_rsa_key_free(key); } + GNUNET_free(keyfile); } gns = GNUNET_GNS_connect (cfg); -- 2.25.1