diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-02-27 01:16:06 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-02-27 01:16:06 +0000 |
commit | dccf3784fbdb16399dadbf500418fbc879241140 (patch) | |
tree | 9a97a54b69f24539298ca0064d9dcc0f153d7c25 /apps | |
parent | 28e7b1f989ca8e05a724c22378404667ae931581 (diff) |
Merged revisions 104334 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r104334 | russell | 2008-02-26 19:15:02 -0600 (Tue, 26 Feb 2008) | 3 lines
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/trunk@104335 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 21e466fb3..faa665789 100644 --- a/apps/app_chanspy.c +++ b/apps/app_chanspy.c @@ -446,6 +446,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); |