From: Mathieu Rene Date: Sun, 23 Feb 2014 02:30:22 +0000 (-0500) Subject: Hey that's leaking X-Git-Tag: v1.5.8~25^2~54 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=58363014c44ab33d2617e19f5caa794ab3fa2efe;p=thirdparty%2Ffreeswitch.git Hey that's leaking --- diff --git a/src/mod/xml_int/mod_xml_scgi/mod_xml_scgi.c b/src/mod/xml_int/mod_xml_scgi/mod_xml_scgi.c index af7de92db3..786a591410 100644 --- a/src/mod/xml_int/mod_xml_scgi/mod_xml_scgi.c +++ b/src/mod/xml_int/mod_xml_scgi/mod_xml_scgi.c @@ -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);