-fix leak
authorChristian Grothoff <christian@grothoff.org>
Thu, 10 May 2012 13:11:49 +0000 (13:11 +0000)
committerChristian Grothoff <christian@grothoff.org>
Thu, 10 May 2012 13:11:49 +0000 (13:11 +0000)
src/gns/gnunet-gns.c

index 7695f42130c4aa89dfc84a7120fe5390bc4fdedb..bb256dadf0df554e3e69088fd0502b89490edb5d 100644 (file)
@@ -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);