提交 58363014 authored 作者: Mathieu Rene's avatar Mathieu Rene

Hey that's leaking

上级 2a3a1aae
......@@ -320,8 +320,8 @@ static switch_status_t do_config(void)
binding->host = switch_core_strdup(globals.pool, host);
binding->port = atoi(port);
binding->vars_map = vars_map;
binding->uri = switch_mprintf("/%s", bname);
binding->url = switch_mprintf("scgi://%s:%s/%s", host, port, bname);
binding->uri = switch_core_sprintf(globals.pool, "/%s", bname);
binding->url = switch_core_sprintf(globals.pool, "scgi://%s:%s/%s", host, port, bname);
if (server) {
binding->server = switch_core_strdup(globals.pool, server);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论