[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r10723 - gnunet/src/dht
From: |
gnunet |
Subject: |
[GNUnet-SVN] r10723 - gnunet/src/dht |
Date: |
Wed, 31 Mar 2010 11:20:51 +0200 |
Author: nevans
Date: 2010-03-31 11:20:51 +0200 (Wed, 31 Mar 2010)
New Revision: 10723
Modified:
gnunet/src/dht/dht_api.c
Log:
missing frees
Modified: gnunet/src/dht/dht_api.c
===================================================================
--- gnunet/src/dht/dht_api.c 2010-03-31 06:40:20 UTC (rev 10722)
+++ gnunet/src/dht/dht_api.c 2010-03-31 09:20:51 UTC (rev 10723)
@@ -280,8 +280,8 @@
if (ntohs(dht_msg->unique))
{
uid_hash = hash_from_uid(ntohl(dht_msg->unique_id));
-
route_handle =
GNUNET_CONTAINER_multihashmap_get(handle->outstanding_requests, uid_hash);
+ GNUNET_free(uid_hash);
if (route_handle == NULL) /* We have no recollection of this request */
{
#if DEBUG_DHT_API
@@ -366,7 +366,10 @@
handle->outstanding_requests = GNUNET_CONTAINER_multihashmap_create(ht_len);
if (handle->client == NULL)
- return NULL;
+ {
+ GNUNET_free(handle);
+ return NULL;
+ }
#if DEBUG_DHT_API
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"`%s': Connection to service in progress\n", "DHT API");
@@ -767,7 +770,7 @@
"`%s': Remove outstanding request from hashmap failed for
key %s, uid %llu\n", "DHT API", GNUNET_h2s(uid_key), route_handle->uid);
#endif
}
-
+ GNUNET_free(uid_key);
return;
}
@@ -860,4 +863,5 @@
GNUNET_DHT_route_start(handle, key, 0, 0, &put_msg->header, timeout, NULL,
NULL, cont, cont_cls);
+ GNUNET_free(put_msg);
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r10723 - gnunet/src/dht,
gnunet <=