aboutsummaryrefslogtreecommitdiff
path: root/lib/url.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2015-05-12 09:15:02 +0200
committerDaniel Stenberg <daniel@haxx.se>2015-05-12 09:15:02 +0200
commit640296c95de3d1c17bf1d81908f884bac9c8062f (patch)
treebfb1ae2dbf6e40a4bb2c07625b1a863ed8a84979 /lib/url.c
parentc4d6f9163a6b4ae0d2848c1127780f17a4a88810 (diff)
connection cache: avoid Curl_hash_alloc()
... by using plain structs instead of pointers for the connection cache, we can avoid several dynamic allocations that weren't necessary.
Diffstat (limited to 'lib/url.c')
-rw-r--r--lib/url.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/url.c b/lib/url.c
index 717ee93fc..c99066074 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -2944,7 +2944,7 @@ find_oldest_idle_connection(struct SessionHandle *data)
now = Curl_tvnow();
- Curl_hash_start_iterate(bc->hash, &iter);
+ Curl_hash_start_iterate(&bc->hash, &iter);
he = Curl_hash_next_element(&iter);
while(he) {