diff options
-rw-r--r-- | apps/app_chanspy.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/app_chanspy.c b/apps/app_chanspy.c index 185cb724a..c5adb78ad 100644 --- a/apps/app_chanspy.c +++ b/apps/app_chanspy.c @@ -1035,6 +1035,7 @@ static int common_exec(struct ast_channel *chan, struct ast_flags *flags, } } } else if (res == 0 && ast_test_flag(flags, OPTION_EXITONHANGUP)) { + ast_autochan_destroy(autochan); iter = ast_channel_iterator_destroy(iter); goto exit; } |