From 45385d112b940c2826fa83fdce9bee5eb4f4f6a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konstantin=20Ka=CC=88fer?= Date: Mon, 3 Mar 2014 14:58:15 +0100 Subject: [PATCH] delete key --- linux/request.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux/request.cpp b/linux/request.cpp index 2c4ebd1bb..4d760656b 100644 --- a/linux/request.cpp +++ b/linux/request.cpp @@ -39,6 +39,7 @@ void Request::initialize() { } void Request::finish() { + pthread_key_delete(key); curl_share_cleanup(curl_share); } @@ -51,7 +52,6 @@ Request::Request(std::string url, std::function bg, s llmr::util::threadpool->add(request, this); } - pthread_key_t Request::key; pthread_once_t Request::key_once = PTHREAD_ONCE_INIT;