From: Christian Grothoff Date: Thu, 10 May 2012 13:11:49 +0000 (+0000) Subject: -fix leak X-Git-Tag: initial-import-from-subversion-38251~13549 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=e537bb14c1b23deefe1df7fd07905b1f318c87c7;p=oweals%2Fgnunet.git -fix leak --- 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);