aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2008-03-18 22:34:42 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2008-03-18 22:34:42 +0000
commitdfb4cc0fb2a7c2cbab0f729b28f6a47f6badc8cb (patch)
treee58397deb2229686474ba25c913e6e905761bc0a /apps
parent04e3487b48569714108de27126fae20ea765c0e8 (diff)
Fix one place where the chanspy datastore isn't removed from a channel.
(issue #12243, reported by atis, patch by me) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@109763 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r--apps/app_chanspy.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/app_chanspy.c b/apps/app_chanspy.c
index b97bfce71..6152a74da 100644
--- a/apps/app_chanspy.c
+++ b/apps/app_chanspy.c
@@ -612,8 +612,10 @@ static int common_exec(struct ast_channel *chan, const struct ast_flags *flags,
res = ast_streamfile(chan, peer_name, chan->language);
if (!res)
res = ast_waitstream(chan, "");
- if (res)
+ if (res) {
+ chanspy_ds_free(peer_chanspy_ds);
break;
+ }
} else
res = ast_say_character_str(chan, peer_name, "", chan->language);
if ((num = atoi(ptr)))