From a3b18a2b83ec916965ca0daef164bbde374b0307 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 29 May 2012 13:29:50 +0000 Subject: [PATCH] -fix memory leak --- src/testing/testing_new.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- 2.25.1