From: Christian Grothoff Date: Tue, 29 May 2012 13:29:50 +0000 (+0000) Subject: -fix memory leak X-Git-Tag: initial-import-from-subversion-38251~13361 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a3b18a2b83ec916965ca0daef164bbde374b0307;p=oweals%2Fgnunet.git -fix memory leak --- diff --git a/src/testing/testing_new.c b/src/testing/testing_new.c index 887ad1180..027faddb5 100644 --- a/src/testing/testing_new.c +++ b/src/testing/testing_new.c @@ -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; }