diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-02-27 01:15:02 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-02-27 01:15:02 +0000 |
commit | e4f4c008135dedc479a4eefc5063b9afb81ede40 (patch) | |
tree | 01b4bbfc35d2268bc4749b9bc446b730e07bf46d /apps | |
parent | c47070f2a324cb4c3a99ae1e095b15a7af9afa58 (diff) |
Avoid some recursion in the cleanup code for the chanspy datastore
(closes issue #12076, reported by junky, patched by me)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@104334 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_chanspy.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/app_chanspy.c b/apps/app_chanspy.c index adea928ee..297bbec97 100644 --- a/apps/app_chanspy.c +++ b/apps/app_chanspy.c @@ -409,6 +409,8 @@ static struct chanspy_ds *chanspy_ds_free(struct chanspy_ds *chanspy_ds) if ((datastore = ast_channel_datastore_find(chan, &chanspy_ds_info, NULL))) { ast_channel_datastore_remove(chan, datastore); /* chanspy_ds->chan is NULL after this call */ + chanspy_ds_destroy(datastore->data); + datastore->data = NULL; ast_channel_datastore_free(datastore); } ast_channel_unlock(chan); |