aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_voicemail.c
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-10-10 14:17:08 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-10-10 14:17:08 +0000
commitbffe2cb9b5eb633c2a6460310e81caf400d6be61 (patch)
treee95224f1badf10b51f52aced49beb5d7d2f0b0f4 /apps/app_voicemail.c
parent407036a9d848c32fd0a0a165d1d92f9ad24a9dfb (diff)
Merged revisions 85242 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r85242 | file | 2007-10-10 11:14:56 -0300 (Wed, 10 Oct 2007) | 6 lines Close voicemail message description file if duration did not meet the minimum, or else we will eventually run out of file descriptors. (closes issue #10918) Reported by: brak2718 Patches: vm1.4.12.1.patch uploaded by brak2718 (license 279) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@85254 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_voicemail.c')
-rw-r--r--apps/app_voicemail.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c
index c4dd7fd27..4fcaa230b 100644
--- a/apps/app_voicemail.c
+++ b/apps/app_voicemail.c
@@ -3271,6 +3271,7 @@ static int leave_voicemail(struct ast_channel *chan, char *ext, struct leave_vm_
if (txt) {
if (duration < vmminsecs) {
+ fclose(txt);
if (option_verbose > 2)
ast_verbose( VERBOSE_PREFIX_3 "Recording was %d seconds long but needs to be at least %d - abandoning\n", duration, vmminsecs);
ast_filedelete(tmptxtfile, NULL);