aboutsummaryrefslogtreecommitdiff
path: root/src/testing/testing.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testing/testing.c')
-rw-r--r--src/testing/testing.c4
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));