From 017af359691c4d417f54036ccec3bcb13bfe5499 Mon Sep 17 00:00:00 2001 From: Pan7 Date: Wed, 29 Jul 2015 16:44:59 +0200 Subject: [PATCH] Add missing qcurl handle cleanup --- code/client/cl_curl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/client/cl_curl.c b/code/client/cl_curl.c index 14bf1a01..96b352f8 100644 --- a/code/client/cl_curl.c +++ b/code/client/cl_curl.c @@ -295,6 +295,8 @@ void CL_cURL_BeginDownload( const char *localName, const char *remoteURL ) } result = qcurl_multi_add_handle(clc.downloadCURLM, clc.downloadCURL); if(result != CURLM_OK) { + qcurl_easy_cleanup(clc.downloadCURL); + clc.downloadCURL = NULL; Com_Error(ERR_DROP,"CL_cURL_BeginDownload: qcurl_multi_add_handle() failed: %s", qcurl_multi_strerror(result)); return; }