diff --git a/main/bridge_channel.c b/main/bridge_channel.c index 4e13775586..0948928eae 100644 --- a/main/bridge_channel.c +++ b/main/bridge_channel.c @@ -1477,11 +1477,16 @@ static void testsuite_notify_feature_success(struct ast_channel *chan, const cha feature = "automixmon"; } else if (!strcmp(dtmf, featuremap->parkcall)) { feature = "parkcall"; - } else if (!strcmp(dtmf, xfer->atxferthreeway)) { + } + } else if (xfer) { + if (!strcmp(dtmf, xfer->atxferthreeway)) { feature = "atxferthreeway"; } } + ao2_cleanup(featuremap); + ao2_cleanup(xfer); + ast_test_suite_event_notify("FEATURE_DETECTION", "Result: success\r\n" "Feature: %s", feature);