]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Fix bad ptr in mrcp profile
authorMathieu Rene <mrene@avgs.ca>
Thu, 18 Jun 2009 18:26:50 +0000 (18:26 +0000)
committerMathieu Rene <mrene@avgs.ca>
Thu, 18 Jun 2009 18:26:50 +0000 (18:26 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13845 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/asr_tts/mod_unimrcp/mod_unimrcp.c

index a8cdd58f3b8094bcff3e8be57b2c5c53ade3db38..855529fec0439f0179f71c1c742ccadf006a3186 100644 (file)
@@ -3171,7 +3171,7 @@ static mrcp_client_t *mod_unimrcp_client_create()
                        mpf_rtp_config_t *rtp_config = NULL;
                        
                        /* get profile attributes */
-                       const char *name = switch_xml_attr(profile, "name");
+                       const char *name = apr_pstrdup(pool, switch_xml_attr(profile, "name"));
                        const char *version = switch_xml_attr(profile, "version");
                        if (switch_strlen_zero(name) || switch_strlen_zero(version)) {
                                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "<profile> missing name or version attribute\n");