-fix memory leak
authorChristian Grothoff <christian@grothoff.org>
Tue, 29 May 2012 13:29:50 +0000 (13:29 +0000)
committerChristian Grothoff <christian@grothoff.org>
Tue, 29 May 2012 13:29:50 +0000 (13:29 +0000)
src/testing/testing_new.c

index 887ad11806d113ba09ffc10230d69715eafa4145..027faddb5e5bad4a9b0c4febf6ed0a32b3c63abe 100644 (file)
@@ -446,7 +446,8 @@ GNUNET_TESTING_hostkey_get (const struct GNUNET_TESTING_System *system,
   GNUNET_CRYPTO_rsa_key_free (private_key);
   GNUNET_CRYPTO_hash (&public_key,
                       sizeof (struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded),
-                      &(id->hashPubKey));  
+                      &(id->hashPubKey));
+  GNUNET_CRYPTO_rsa_key_free (private_key);
   return GNUNET_OK;
 }