FS-11818 [core] fix memory leak when using dial handle in switch_ivr_originate()
This commit is contained in:
parent
6f2466eb35
commit
12ce8dd34b
|
@ -2186,6 +2186,9 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess
|
|||
if (dh) {
|
||||
switch_event_t *vp = switch_dial_handle_get_global_vars(dh);
|
||||
if (vp) {
|
||||
if (var_event && var_event != ovars) {
|
||||
switch_event_destroy(&var_event);
|
||||
}
|
||||
switch_event_dup(&var_event, vp);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue