diff options
-rw-r--r-- | src/arm/arm_api.c | 2 | ||||
-rw-r--r-- | src/gns/test_gns_dht_delegated_lookup.c | 2 | ||||
-rw-r--r-- | src/util/crypto_rsa.c | 1 |
3 files changed, 4 insertions, 1 deletions
diff --git a/src/arm/arm_api.c b/src/arm/arm_api.c index 16de88929..452dd34c4 100644 --- a/src/arm/arm_api.c +++ b/src/arm/arm_api.c | |||
@@ -763,8 +763,8 @@ handle_list_response (void *cls, const struct GNUNET_MessageHeader *msg) | |||
763 | if (NULL == end) | 763 | if (NULL == end) |
764 | { | 764 | { |
765 | GNUNET_break (0); | 765 | GNUNET_break (0); |
766 | GNUNET_free (sc); | ||
767 | sc->callback (sc->cls, GNUNET_NO, 0, NULL); | 766 | sc->callback (sc->cls, GNUNET_NO, 0, NULL); |
767 | GNUNET_free (sc); | ||
768 | return; | 768 | return; |
769 | } | 769 | } |
770 | list[i] = pos; | 770 | list[i] = pos; |
diff --git a/src/gns/test_gns_dht_delegated_lookup.c b/src/gns/test_gns_dht_delegated_lookup.c index 83fdf1873..3b097a3d5 100644 --- a/src/gns/test_gns_dht_delegated_lookup.c +++ b/src/gns/test_gns_dht_delegated_lookup.c | |||
@@ -224,6 +224,7 @@ put_dht(void *cls, int32_t success, const char *emsg) | |||
224 | { | 224 | { |
225 | GNUNET_log(GNUNET_ERROR_TYPE_ERROR, "Record serialization failed!\n"); | 225 | GNUNET_log(GNUNET_ERROR_TYPE_ERROR, "Record serialization failed!\n"); |
226 | ok = 3; | 226 | ok = 3; |
227 | GNUNET_free (nrb); | ||
227 | return; | 228 | return; |
228 | } | 229 | } |
229 | GNUNET_CRYPTO_hash(TEST_RECORD_NAME, strlen(TEST_RECORD_NAME), &name_hash); | 230 | GNUNET_CRYPTO_hash(TEST_RECORD_NAME, strlen(TEST_RECORD_NAME), &name_hash); |
@@ -244,6 +245,7 @@ put_dht(void *cls, int32_t success, const char *emsg) | |||
244 | DHT_OPERATION_TIMEOUT, | 245 | DHT_OPERATION_TIMEOUT, |
245 | NULL, | 246 | NULL, |
246 | NULL); | 247 | NULL); |
248 | GNUNET_free (nrb); | ||
247 | GNUNET_SCHEDULER_add_delayed(TIMEOUT, &finish_testing, NULL); | 249 | GNUNET_SCHEDULER_add_delayed(TIMEOUT, &finish_testing, NULL); |
248 | } | 250 | } |
249 | 251 | ||
diff --git a/src/util/crypto_rsa.c b/src/util/crypto_rsa.c index 8f69e97fd..2bb65f69b 100644 --- a/src/util/crypto_rsa.c +++ b/src/util/crypto_rsa.c | |||
@@ -808,6 +808,7 @@ GNUNET_CRYPTO_setup_hostkey (const char *cfg_name) | |||
808 | pk = GNUNET_CRYPTO_rsa_key_create_from_file (fn); | 808 | pk = GNUNET_CRYPTO_rsa_key_create_from_file (fn); |
809 | if (NULL != pk) | 809 | if (NULL != pk) |
810 | GNUNET_CRYPTO_rsa_key_free (pk); | 810 | GNUNET_CRYPTO_rsa_key_free (pk); |
811 | GNUNET_free (fn); | ||
811 | } | 812 | } |
812 | GNUNET_CONFIGURATION_destroy (cfg); | 813 | GNUNET_CONFIGURATION_destroy (cfg); |
813 | } | 814 | } |