diff options
author | Nathan S. Evans <evans@in.tum.de> | 2010-03-31 09:20:51 +0000 |
---|---|---|
committer | Nathan S. Evans <evans@in.tum.de> | 2010-03-31 09:20:51 +0000 |
commit | e96b5f1bb1269cdde73e8a178344069f61080804 (patch) | |
tree | c23da7cf013f1b08dc7ed204bf2aa36778719be8 /src/dht/dht_api.c | |
parent | 5d27676deba6a3f404acf088d3bedc8a0e1d2b1b (diff) | |
download | gnunet-e96b5f1bb1269cdde73e8a178344069f61080804.tar.gz gnunet-e96b5f1bb1269cdde73e8a178344069f61080804.zip |
missing frees
Diffstat (limited to 'src/dht/dht_api.c')
-rw-r--r-- | src/dht/dht_api.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/dht/dht_api.c b/src/dht/dht_api.c index 550322157..9fb77d5d4 100644 --- a/src/dht/dht_api.c +++ b/src/dht/dht_api.c | |||
@@ -280,8 +280,8 @@ void service_message_handler (void *cls, | |||
280 | if (ntohs(dht_msg->unique)) | 280 | if (ntohs(dht_msg->unique)) |
281 | { | 281 | { |
282 | uid_hash = hash_from_uid(ntohl(dht_msg->unique_id)); | 282 | uid_hash = hash_from_uid(ntohl(dht_msg->unique_id)); |
283 | |||
284 | route_handle = GNUNET_CONTAINER_multihashmap_get(handle->outstanding_requests, uid_hash); | 283 | route_handle = GNUNET_CONTAINER_multihashmap_get(handle->outstanding_requests, uid_hash); |
284 | GNUNET_free(uid_hash); | ||
285 | if (route_handle == NULL) /* We have no recollection of this request */ | 285 | if (route_handle == NULL) /* We have no recollection of this request */ |
286 | { | 286 | { |
287 | #if DEBUG_DHT_API | 287 | #if DEBUG_DHT_API |
@@ -366,7 +366,10 @@ GNUNET_DHT_connect (struct GNUNET_SCHEDULER_Handle *sched, | |||
366 | handle->outstanding_requests = GNUNET_CONTAINER_multihashmap_create(ht_len); | 366 | handle->outstanding_requests = GNUNET_CONTAINER_multihashmap_create(ht_len); |
367 | 367 | ||
368 | if (handle->client == NULL) | 368 | if (handle->client == NULL) |
369 | return NULL; | 369 | { |
370 | GNUNET_free(handle); | ||
371 | return NULL; | ||
372 | } | ||
370 | #if DEBUG_DHT_API | 373 | #if DEBUG_DHT_API |
371 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 374 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
372 | "`%s': Connection to service in progress\n", "DHT API"); | 375 | "`%s': Connection to service in progress\n", "DHT API"); |
@@ -767,7 +770,7 @@ GNUNET_DHT_route_stop (struct GNUNET_DHT_RouteHandle *route_handle) | |||
767 | "`%s': Remove outstanding request from hashmap failed for key %s, uid %llu\n", "DHT API", GNUNET_h2s(uid_key), route_handle->uid); | 770 | "`%s': Remove outstanding request from hashmap failed for key %s, uid %llu\n", "DHT API", GNUNET_h2s(uid_key), route_handle->uid); |
768 | #endif | 771 | #endif |
769 | } | 772 | } |
770 | 773 | GNUNET_free(uid_key); | |
771 | return; | 774 | return; |
772 | } | 775 | } |
773 | 776 | ||
@@ -860,4 +863,5 @@ GNUNET_DHT_put (struct GNUNET_DHT_Handle *handle, | |||
860 | 863 | ||
861 | GNUNET_DHT_route_start(handle, key, 0, 0, &put_msg->header, timeout, NULL, NULL, cont, cont_cls); | 864 | GNUNET_DHT_route_start(handle, key, 0, 0, &put_msg->header, timeout, NULL, NULL, cont, cont_cls); |
862 | 865 | ||
866 | GNUNET_free(put_msg); | ||
863 | } | 867 | } |