FS-10440: [mod_httapi] valgrind: event leak in mod_httapi.c #resolve

This commit is contained in:
Anthony Minessale 2017-06-29 18:21:23 -05:00
parent 8734c9070d
commit ae5c197808
1 changed files with 3 additions and 1 deletions

View File

@ -2603,7 +2603,9 @@ static switch_status_t fetch_cache_data(http_file_context_t *context, const char
}
if (headers) {
if (!client->headers) {
switch_event_create(&client->headers, SWITCH_EVENT_CLONE);
}
if (save_path) {
switch_curl_easy_setopt(curl_handle, CURLOPT_HEADERFUNCTION, get_header_callback);
switch_curl_easy_setopt(curl_handle, CURLOPT_WRITEHEADER, (void *) client);