diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-09-22 21:53:51 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-09-22 21:53:51 +0000 |
commit | 07f3035c210e1052adff25286e16ff28679f3fa1 (patch) | |
tree | a9f25a1517fc0215ef0d10cbcf4dd445e7d28a1a /channel.c | |
parent | 540b8b42f39e8940c10fb82d6787fc16fd75f04d (diff) |
Yay another 'round of spy fixes! This fixes a small logic flaw with the cleanup function and a memory allocation issue. (issue #7960 reported by jojo & issue #7999 reported by aster1) Special thanks to csum77 for letting me into a box where this issue was happening.
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@43509 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channel.c')
-rw-r--r-- | channel.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1020,7 +1020,7 @@ int ast_channel_spy_add(struct ast_channel *chan, struct ast_channel_spy *spy) /* Clean up a channel's spy information */ static void spy_cleanup(struct ast_channel *chan) { - if (AST_LIST_EMPTY(&chan->spies->list)) + if (AST_LIST_FIRST(&chan->spies->list)) return; if (chan->spies->read_translator.path) ast_translator_free_path(chan->spies->read_translator.path); |