From: Matthias Wachs Date: Thu, 1 Mar 2012 12:55:50 +0000 (+0000) Subject: - test pass (not on sparc) X-Git-Tag: initial-import-from-subversion-38251~14521 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=bd048eb574eca410e76d81ee6dd1b214b6966e92;p=oweals%2Fgnunet.git - test pass (not on sparc) --- diff --git a/src/namestore/gnunet-service-namestore.c b/src/namestore/gnunet-service-namestore.c index 67c83bc42..b09c0bca8 100644 --- a/src/namestore/gnunet-service-namestore.c +++ b/src/namestore/gnunet-service-namestore.c @@ -512,7 +512,6 @@ GNUNET_NAMESTORE_create_signature (const struct GNUNET_CRYPTO_RsaPrivateKey *key GNUNET_CRYPTO_rsa_sign (key, sig_purpose, sig); - GNUNET_free (rd_ser); GNUNET_free (sig_purpose); return sig; } @@ -656,6 +655,8 @@ static void handle_record_create (void *cls, /* Get existing records for name */ res = GSN_database->iterate_records(GSN_database->cls, &pubkey_hash, name_tmp, 0, &handle_create_record_it, &crc); + GNUNET_CRYPTO_rsa_key_free(pkey); + GNUNET_SERVER_receive_done (client, GNUNET_OK); } diff --git a/src/namestore/namestore_api.c b/src/namestore/namestore_api.c index d3d5e60ef..bf7da5edf 100644 --- a/src/namestore/namestore_api.c +++ b/src/namestore/namestore_api.c @@ -818,7 +818,6 @@ GNUNET_NAMESTORE_record_put (struct GNUNET_NAMESTORE_Handle *h, msg->rd_count = htons (rd_count); memcpy (rd_tmp, rd_ser, rd_ser_len); - GNUNET_free (rd_ser); GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Sending `%s' message for name `%s' with size %u\n", "NAMESTORE_RECORD_PUT", name, msg_size); @@ -934,7 +933,6 @@ GNUNET_NAMESTORE_record_create (struct GNUNET_NAMESTORE_Handle *h, memcpy (pkey_tmp, pkey_enc, key_len); memcpy (name_tmp, name, name_len); memcpy (rd_tmp, rd_ser, rd_ser_len); - GNUNET_free (rd_ser); GNUNET_free (pkey_enc); GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Sending `%s' message for name `%s' with size %u\n", "NAMESTORE_RECORD_CREATE", name, msg_size); diff --git a/src/namestore/test_namestore_api_create.c b/src/namestore/test_namestore_api_create.c index e4f9cf124..71a15869c 100644 --- a/src/namestore/test_namestore_api_create.c +++ b/src/namestore/test_namestore_api_create.c @@ -308,8 +308,6 @@ run (void *cls, char *const *args, const char *cfgfile, sig_purpose->purpose = htonl (GNUNET_SIGNATURE_PURPOSE_GNS_RECORD_SIGN); memcpy (&sig_purpose[1], rd_ser, rd_ser_len); GNUNET_CRYPTO_rsa_sign (privkey, sig_purpose, &s_signature); - - GNUNET_free (rd_ser); GNUNET_free (sig_purpose); /* create random zone hash */ diff --git a/src/namestore/test_namestore_api_lookup.c b/src/namestore/test_namestore_api_lookup.c index 1d91c32c6..b3328123a 100644 --- a/src/namestore/test_namestore_api_lookup.c +++ b/src/namestore/test_namestore_api_lookup.c @@ -256,7 +256,6 @@ run (void *cls, char *const *args, const char *cfgfile, memcpy (&sig_purpose[1], rd_ser, rd_ser_len); GNUNET_CRYPTO_rsa_sign (privkey, sig_purpose, &s_signature); - GNUNET_free (rd_ser); GNUNET_free (sig_purpose); /* create random zone hash */