diff options
author | Daniel Stenberg <daniel@haxx.se> | 2017-12-04 15:37:15 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2017-12-04 15:37:15 +0100 |
commit | f24996d71ad976022df4452e7ca398bd52def398 (patch) | |
tree | cf4a96ec25545f2025b1556c963a25978b4f2ccf | |
parent | fb4fadc317eb7279f2b7fe5f7a96d3e8f4fdd239 (diff) | |
download | curl-f24996d71ad976022df4452e7ca398bd52def398.tar.gz |
Curl_conncache_remove_conn: move the conn unlock
-rw-r--r-- | lib/conncache.c | 3 |
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); } } |