Revision
15175
Author
mikej
Date
2009-10-19 10:32:12 -0500 (Mon, 19 Oct 2009)

Log Message

fix segfault

Modified Paths

Diff

Modified: freeswitch/trunk/src/switch_ivr_async.c (15174 => 15175)


--- freeswitch/trunk/src/switch_ivr_async.c	2009-10-19 00:36:48 UTC (rev 15174)
+++ freeswitch/trunk/src/switch_ivr_async.c	2009-10-19 15:32:12 UTC (rev 15175)
@@ -751,7 +751,7 @@
 			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);
 			}