summaryrefslogtreecommitdiff
path: root/main/bridge_basic.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/bridge_basic.c')
-rw-r--r--main/bridge_basic.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/main/bridge_basic.c b/main/bridge_basic.c
index 084212b32..b5305a61f 100644
--- a/main/bridge_basic.c
+++ b/main/bridge_basic.c
@@ -2263,7 +2263,8 @@ static int blond_nonfinal_enter(struct attended_transfer_properties *props)
props->superstate = SUPERSTATE_RECALL;
props->recall_target = ast_channel_ref(props->transfer_target);
res = blond_enter(props);
- props->transfer_target = ast_channel_unref(props->transfer_target);
+ /* transfer properties holds a separate reference to transfer_target, don't set it to NULL here */
+ ast_channel_unref(props->transfer_target);
return res;
}