提交 ae5c1978 authored 作者: Anthony Minessale's avatar Anthony Minessale

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

上级 8734c907
......@@ -2603,7 +2603,9 @@ static switch_status_t fetch_cache_data(http_file_context_t *context, const char
}
if (headers) {
switch_event_create(&client->headers, SWITCH_EVENT_CLONE);
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);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论