提交 3329141e authored 作者: William King's avatar William King

Don't risk the double free, use switch_safe_free here same as in ~15 lines.

上级 60f5dec5
......@@ -2343,7 +2343,7 @@ static char *load_cache_data(http_file_context_t *context, const char *url)
if ((p = strchr(dext, '?'))) {
*p = '\0';
ext = dext;
} else free(dext);
} else switch_safe_free(dext);
}
context->cache_file_base = switch_core_sprintf(context->pool, "%s%s%s", globals.cache_path, SWITCH_PATH_SEPARATOR, digest);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论