diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-08-21 15:34:18 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-08-21 15:34:18 +0000 |
commit | 65e91346db9fe4ca1b1ff6516872454c468eb7f2 (patch) | |
tree | 4228cfb2c3b628f6dd011f8b73075ecb86343217 /src/testing/testing.c | |
parent | 47386fdbe2b5945fc2c319ef6899e3b67157d04f (diff) | |
download | gnunet-65e91346db9fe4ca1b1ff6516872454c468eb7f2.tar.gz gnunet-65e91346db9fe4ca1b1ff6516872454c468eb7f2.zip |
removing GNUNET_CRYPTO_ecc_key_free, use GNUNET_free directly instead
Diffstat (limited to 'src/testing/testing.c')
-rw-r--r-- | src/testing/testing.c | 4 |
1 files changed, 2 insertions, 2 deletions
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, | |||
1169 | goto err_ret; | 1169 | goto err_ret; |
1170 | } | 1170 | } |
1171 | if (NULL != pk) | 1171 | if (NULL != pk) |
1172 | GNUNET_CRYPTO_ecc_key_free (pk); | 1172 | GNUNET_free (pk); |
1173 | if (GNUNET_NO == | 1173 | if (GNUNET_NO == |
1174 | GNUNET_CONFIGURATION_have_value (cfg, "PEER", "PRIVATE_KEY")) | 1174 | GNUNET_CONFIGURATION_have_value (cfg, "PEER", "PRIVATE_KEY")) |
1175 | { | 1175 | { |
@@ -1288,7 +1288,7 @@ GNUNET_TESTING_peer_get_identity (struct GNUNET_TESTING_Peer *peer, | |||
1288 | return; | 1288 | return; |
1289 | } | 1289 | } |
1290 | peer->id = GNUNET_malloc (sizeof (struct GNUNET_PeerIdentity)); | 1290 | peer->id = GNUNET_malloc (sizeof (struct GNUNET_PeerIdentity)); |
1291 | GNUNET_CRYPTO_ecc_key_free (GNUNET_TESTING_hostkey_get (peer->system, | 1291 | GNUNET_free (GNUNET_TESTING_hostkey_get (peer->system, |
1292 | peer->key_number, | 1292 | peer->key_number, |
1293 | peer->id)); | 1293 | peer->id)); |
1294 | memcpy (id, peer->id, sizeof (struct GNUNET_PeerIdentity)); | 1294 | memcpy (id, peer->id, sizeof (struct GNUNET_PeerIdentity)); |