]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Hey that's leaking
authorMathieu Rene <mrene@avgs.ca>
Sun, 23 Feb 2014 02:30:22 +0000 (21:30 -0500)
committerMathieu Rene <mrene@avgs.ca>
Sun, 23 Feb 2014 02:30:22 +0000 (21:30 -0500)
src/mod/xml_int/mod_xml_scgi/mod_xml_scgi.c

index af7de92db36ff21d3e1b463b6924c9be2ac9fe02..786a59141023001edb6af7b5f67e30589f27caee 100644 (file)
@@ -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);