From: Christian Grothoff Date: Wed, 20 Jun 2012 10:51:20 +0000 (+0000) Subject: -fix leaks X-Git-Tag: initial-import-from-subversion-38251~12945 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=39ee5bd7ed16e4c1308415daf55eb2bdd1584a8a;p=oweals%2Fgnunet.git -fix leaks --- diff --git a/src/testing/gnunet-testing.c b/src/testing/gnunet-testing.c index a6c247ff3..77d2cf415 100644 --- a/src/testing/gnunet-testing.c +++ b/src/testing/gnunet-testing.c @@ -129,6 +129,7 @@ create_hostkeys (const unsigned int no) if (NULL == pk) { fprintf (stderr, _("Could not extract hostkey %u (offset too large?)\n"), create_no); + GNUNET_TESTING_system_destroy (system, GNUNET_YES); return 1; } (void) GNUNET_DISK_directory_create_for_file (create_hostkey); @@ -146,6 +147,7 @@ create_hostkeys (const unsigned int no) "Wrote hostkey to file: `%s'\n", create_hostkey); GNUNET_free (pkb); GNUNET_CRYPTO_rsa_key_free (pk); + GNUNET_TESTING_system_destroy (system, GNUNET_YES); return 0; }