summaryrefslogtreecommitdiff
path: root/zaptel-base.c
diff options
context:
space:
mode:
authorqwell <qwell@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2007-03-30 18:56:46 +0000
committerqwell <qwell@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2007-03-30 18:56:46 +0000
commit6f54c2ee3cdcb6505c7bc7d652b257a10ff5cba9 (patch)
tree0b93d7f01c9ca9547635ad7e485cd85b2958eb16 /zaptel-base.c
parentf44e95ceab02b7ad374f7588aed1c8cb174815d3 (diff)
Fix an issue where an echo can was freed incorrectly in certain circumstances.
Issue 9292, fix suggested by ddv2005. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@2353 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'zaptel-base.c')
-rw-r--r--zaptel-base.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/zaptel-base.c b/zaptel-base.c
index 7108a9d..db9b90e 100644
--- a/zaptel-base.c
+++ b/zaptel-base.c
@@ -4803,7 +4803,7 @@ static inline void __zt_process_getaudio_chunk(struct zt_chan *ss, unsigned char
ms->echostate = ECHO_STATE_IDLE;
ms->echolastupdate = 0;
ms->echotimer = 0;
- kfree(ms->ec);
+ echo_can_free(ms->ec);
ms->ec = NULL;
break;
}
@@ -5658,7 +5658,7 @@ static inline void __zt_process_putaudio_chunk(struct zt_chan *ss, unsigned char
ms->echostate = ECHO_STATE_IDLE;
ms->echolastupdate = 0;
ms->echotimer = 0;
- kfree(ms->ec);
+ echo_can_free(ms->ec);
ms->ec = NULL;
break;
}