From: Andrey Volk Date: Thu, 27 Oct 2022 21:27:55 +0000 (+0300) Subject: [mod_http_cache] Fix leaking curl handle in http_get() X-Git-Tag: v1.10.9^2~27 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2ab600c71a659a5a8771c74ed7d777cfe09bc163;p=thirdparty%2Ffreeswitch.git [mod_http_cache] Fix leaking curl handle in http_get() --- diff --git a/src/mod/applications/mod_http_cache/mod_http_cache.c b/src/mod/applications/mod_http_cache/mod_http_cache.c index d6f4fb6ed8..9d19099e56 100644 --- a/src/mod/applications/mod_http_cache/mod_http_cache.c +++ b/src/mod/applications/mod_http_cache/mod_http_cache.c @@ -1167,6 +1167,7 @@ static switch_status_t http_get(url_cache_t *cache, http_profile_t *profile, cac switch_curl_easy_cleanup(curl_handle); close(get_data.fd); } else { + switch_curl_easy_cleanup(curl_handle); switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_ERROR, "open() error: %s\n", strerror(errno)); status = SWITCH_STATUS_GENERR; goto done;