diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-03-03 06:45:00 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-03-03 06:45:00 +0000 |
commit | 34ff6011cd441c24f03aa1001be1ccbabd6e162a (patch) | |
tree | 529ae9d52b814e4601d5527d760a22d76d6bf78d /apps/app_voicemail.c | |
parent | 4328496d5b59ae137344a6aadc7b3bd3a389cca8 (diff) |
Merged revisions 57648 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r57648 | tilghman | 2007-03-03 00:36:55 -0600 (Sat, 03 Mar 2007) | 2 lines
Memory leak of a list, if call recording was abandoned
........
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@57649 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_voicemail.c')
-rw-r--r-- | apps/app_voicemail.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 518b9e927..edf5d454b 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -4163,6 +4163,10 @@ static int forward_message(struct ast_channel *chan, char *context, struct vm_st } } } + + /* If anything failed above, we still have this list to free */ + while ((vmtmp = AST_LIST_REMOVE_HEAD(&extensions, list))) + free_user(vmtmp); return res ? res : cmd; } |