From 65e91346db9fe4ca1b1ff6516872454c468eb7f2 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 21 Aug 2013 15:34:18 +0000 Subject: removing GNUNET_CRYPTO_ecc_key_free, use GNUNET_free directly instead --- src/testing/gnunet-testing.c | 2 +- src/testing/testing.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/testing') diff --git a/src/testing/gnunet-testing.c b/src/testing/gnunet-testing.c index 45ca4978c..b3d3ac268 100644 --- a/src/testing/gnunet-testing.c +++ b/src/testing/gnunet-testing.c @@ -143,7 +143,7 @@ create_hostkeys (const unsigned int no) GNUNET_assert (GNUNET_OK == GNUNET_DISK_file_close (fd)); GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG, "transport-testing", "Wrote hostkey to file: `%s'\n", create_hostkey); - GNUNET_CRYPTO_ecc_key_free (pk); + GNUNET_free (pk); GNUNET_TESTING_system_destroy (system, GNUNET_YES); return 0; } diff --git a/src/testing/testing.c b/src/testing/testing.c index 9e193bd9c..db74f8897 100644 --- a/src/testing/testing.c +++ b/src/testing/testing.c @@ -1169,7 +1169,7 @@ GNUNET_TESTING_peer_configure (struct GNUNET_TESTING_System *system, goto err_ret; } if (NULL != pk) - GNUNET_CRYPTO_ecc_key_free (pk); + GNUNET_free (pk); if (GNUNET_NO == GNUNET_CONFIGURATION_have_value (cfg, "PEER", "PRIVATE_KEY")) { @@ -1288,7 +1288,7 @@ GNUNET_TESTING_peer_get_identity (struct GNUNET_TESTING_Peer *peer, return; } peer->id = GNUNET_malloc (sizeof (struct GNUNET_PeerIdentity)); - GNUNET_CRYPTO_ecc_key_free (GNUNET_TESTING_hostkey_get (peer->system, + GNUNET_free (GNUNET_TESTING_hostkey_get (peer->system, peer->key_number, peer->id)); memcpy (id, peer->id, sizeof (struct GNUNET_PeerIdentity)); -- cgit v1.2.3