]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix segfault
authorMichael Jerris <mike@jerris.com>
Mon, 19 Oct 2009 15:32:12 +0000 (15:32 +0000)
committerMichael Jerris <mike@jerris.com>
Mon, 19 Oct 2009 15:32:12 +0000 (15:32 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15175 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_ivr_async.c

index 50514f9d3bba71b45dec8d1a0953e6f79a3ab966..7ee95f3facc7b74b995768d451785a89bb5c0dfd 100644 (file)
@@ -751,7 +751,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_eavesdrop_session(switch_core_session
                        if (switch_core_session_dequeue_event(session, &event, SWITCH_FALSE) == SWITCH_STATUS_SUCCESS) {
                                char *command = switch_event_get_header(event, "eavesdrop-command");
                                if (command) {
-                                       fcommand = command;
+                                       fcommand = switch_core_session_strdup(session, command);
                                }
                                switch_event_destroy(&event);
                        }