diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-06-20 10:51:20 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-06-20 10:51:20 +0000 |
commit | 39ee5bd7ed16e4c1308415daf55eb2bdd1584a8a (patch) | |
tree | f07062a2159d4b055cf2fe982759508bd529f84c /src/testing/gnunet-testing.c | |
parent | 8d287f2cfb8ab048176769966fffc044e02b5280 (diff) | |
download | gnunet-39ee5bd7ed16e4c1308415daf55eb2bdd1584a8a.tar.gz gnunet-39ee5bd7ed16e4c1308415daf55eb2bdd1584a8a.zip |
-fix leaks
Diffstat (limited to 'src/testing/gnunet-testing.c')
-rw-r--r-- | src/testing/gnunet-testing.c | 2 |
1 files changed, 2 insertions, 0 deletions
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) | |||
129 | if (NULL == pk) | 129 | if (NULL == pk) |
130 | { | 130 | { |
131 | fprintf (stderr, _("Could not extract hostkey %u (offset too large?)\n"), create_no); | 131 | fprintf (stderr, _("Could not extract hostkey %u (offset too large?)\n"), create_no); |
132 | GNUNET_TESTING_system_destroy (system, GNUNET_YES); | ||
132 | return 1; | 133 | return 1; |
133 | } | 134 | } |
134 | (void) GNUNET_DISK_directory_create_for_file (create_hostkey); | 135 | (void) GNUNET_DISK_directory_create_for_file (create_hostkey); |
@@ -146,6 +147,7 @@ create_hostkeys (const unsigned int no) | |||
146 | "Wrote hostkey to file: `%s'\n", create_hostkey); | 147 | "Wrote hostkey to file: `%s'\n", create_hostkey); |
147 | GNUNET_free (pkb); | 148 | GNUNET_free (pkb); |
148 | GNUNET_CRYPTO_rsa_key_free (pk); | 149 | GNUNET_CRYPTO_rsa_key_free (pk); |
150 | GNUNET_TESTING_system_destroy (system, GNUNET_YES); | ||
149 | return 0; | 151 | return 0; |
150 | } | 152 | } |
151 | 153 | ||