diff options
author | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-12-13 19:49:55 +0000 |
---|---|---|
committer | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-12-13 19:49:55 +0000 |
commit | cbc0e71a63e867e9b80a071aae49193cd192d83f (patch) | |
tree | bd0fb0994dc35f993c64ef3a63fd3aa5e3063d64 /apps | |
parent | 64ef304ee2343cad2b43e0aee1776d4c2f1b80bd (diff) |
Prevent a possible fd leak.
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@92803 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_voicemail.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 490ecf108..b72d060f9 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -1686,11 +1686,11 @@ static int base_encode(char *filename, FILE *so) } } + fclose(fi); + if (fputs(eol,so)==EOF) return 0; - fclose(fi); - return 1; } |