aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_voicemail.c
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2007-03-03 06:46:24 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2007-03-03 06:46:24 +0000
commit9a0381430f7c040e8da7442ade1e6a3df987ca00 (patch)
treee7a07c2dc9079423829b510656d3f8ccc24fdb31 /apps/app_voicemail.c
parent57c81203311a86cd6acac6fd7d567cb683d7036f (diff)
Merged revisions 57649 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ................ r57649 | tilghman | 2007-03-03 00:45:00 -0600 (Sat, 03 Mar 2007) | 10 lines 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/trunk@57651 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_voicemail.c')
-rw-r--r--apps/app_voicemail.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c
index 5cb03c86a..c6d126bcf 100644
--- a/apps/app_voicemail.c
+++ b/apps/app_voicemail.c
@@ -4219,6 +4219,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;
}