summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2017-12-04 15:37:15 +0100
committerDaniel Stenberg <daniel@haxx.se>2017-12-04 15:37:15 +0100
commitf24996d71ad976022df4452e7ca398bd52def398 (patch)
treecf4a96ec25545f2025b1556c963a25978b4f2ccf
parentfb4fadc317eb7279f2b7fe5f7a96d3e8f4fdd239 (diff)
downloadcurl-f24996d71ad976022df4452e7ca398bd52def398.tar.gz
Curl_conncache_remove_conn: move the conn unlock
-rw-r--r--lib/conncache.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/conncache.c b/lib/conncache.c
index 7750b15d3..eef00555e 100644
--- a/lib/conncache.c
+++ b/lib/conncache.c
@@ -299,14 +299,13 @@ void Curl_conncache_remove_conn(struct conncache *connc,
bundle_remove_conn(bundle, conn);
if(bundle->num_connections == 0)
conncache_remove_bundle(connc, bundle);
- CONN_UNLOCK(conn->data);
if(connc) {
connc->num_connections--;
-
DEBUGF(infof(conn->data, "The cache now contains %"
CURL_FORMAT_CURL_OFF_TU " members\n",
(curl_off_t) connc->num_connections));
}
+ CONN_UNLOCK(conn->data);
}
}