fix
[oweals/gnunet.git] / src / gns / test_gns_simple_get_authority.c
index 3c4e8103b5f26e7714d64dea05a4d87844941156..6a8184efdba12a977a182b41f977616f986d1fbb 100644 (file)
@@ -99,6 +99,10 @@ process_auth_result(void* cls, const char* aname)
 {
   GNUNET_GNS_disconnect(gns_handle);
 
+
+  GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+              "disconnecting from namestore\n");
+  GNUNET_NAMESTORE_disconnect (namestore_handle);
   ok = 0;
 
   if (aname == NULL)
@@ -136,10 +140,6 @@ commence_testing (void *cls, int32_t success, const char *emsg)
 {
   
   
-
-  GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
-              "disconnecting from namestore\n");
-  GNUNET_NAMESTORE_disconnect(namestore_handle, GNUNET_YES);
   
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
               "connecting to gns\n");
@@ -307,7 +307,9 @@ do_shorten(void *cls, const struct GNUNET_PeerIdentity *id,
                                NULL);
 
   GNUNET_free(sig);
-
+  GNUNET_CRYPTO_rsa_key_free (alice_key);
+  GNUNET_CRYPTO_rsa_key_free (bob_key);
+  GNUNET_CRYPTO_rsa_key_free (our_key);
 }
 
 static void