summaryrefslogtreecommitdiff
path: root/apps/app_voicemail.c
diff options
context:
space:
mode:
authorMark Michelson <mmichelson@digium.com>2007-12-13 19:53:21 +0000
committerMark Michelson <mmichelson@digium.com>2007-12-13 19:53:21 +0000
commit98ad4c80f5020cd93110962b9052a48862996be3 (patch)
treefcdbc2ce0de19bd1dae5943f9f95ca193acec0b5 /apps/app_voicemail.c
parent5d23b05a921e3f6665c702e5bed76faa6fba3266 (diff)
Merged revisions 92803 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r92803 | mmichelson | 2007-12-13 13:49:55 -0600 (Thu, 13 Dec 2007) | 3 lines Prevent a possible fd leak. ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@92806 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_voicemail.c')
-rw-r--r--apps/app_voicemail.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c
index b6136bb6e..30eed5552 100644
--- a/apps/app_voicemail.c
+++ b/apps/app_voicemail.c
@@ -1847,10 +1847,10 @@ static int base_encode(char *filename, FILE *so)
}
}
- if (fputs(eol,so) == EOF)
- return 0;
-
fclose(fi);
+
+ if (fputs(eol,so)==EOF)
+ return 0;
return 1;
}