diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-05-29 13:29:50 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-05-29 13:29:50 +0000 |
commit | a3b18a2b83ec916965ca0daef164bbde374b0307 (patch) | |
tree | a71a2d4db67c91dc907c27f0e612089fc7754bf8 /src | |
parent | c1412ed374a0ff748dbe7778a6a2821baaffca98 (diff) | |
download | gnunet-a3b18a2b83ec916965ca0daef164bbde374b0307.tar.gz gnunet-a3b18a2b83ec916965ca0daef164bbde374b0307.zip |
-fix memory leak
Diffstat (limited to 'src')
-rw-r--r-- | src/testing/testing_new.c | 3 |
1 files changed, 2 insertions, 1 deletions
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, | |||
446 | GNUNET_CRYPTO_rsa_key_free (private_key); | 446 | GNUNET_CRYPTO_rsa_key_free (private_key); |
447 | GNUNET_CRYPTO_hash (&public_key, | 447 | GNUNET_CRYPTO_hash (&public_key, |
448 | sizeof (struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded), | 448 | sizeof (struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded), |
449 | &(id->hashPubKey)); | 449 | &(id->hashPubKey)); |
450 | GNUNET_CRYPTO_rsa_key_free (private_key); | ||
450 | return GNUNET_OK; | 451 | return GNUNET_OK; |
451 | } | 452 | } |
452 | 453 | ||