diff options
author | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-12-13 20:12:37 +0000 |
---|---|---|
committer | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-12-13 20:12:37 +0000 |
commit | 42b7cba60fe4f825893648ff9de9d0864477cee9 (patch) | |
tree | 03e3ab3eeece7c1c4bfceb24bd8cfc09a952f5ed /apps/app_voicemail.c | |
parent | 9933ae09cec8d970d38048e3978871cb8d5b76d8 (diff) |
Merged revisions 92807 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r92807 | mmichelson | 2007-12-13 14:03:20 -0600 (Thu, 13 Dec 2007) | 3 lines
Prevent another potential fd leak
........
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@92808 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_voicemail.c')
-rw-r--r-- | apps/app_voicemail.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 30eed5552..17fb0010d 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -2528,6 +2528,7 @@ static int imap_store_file(char *dir, char *mailboxuser, char *mailboxcontext, i rewind(p); if (!(buf = ast_malloc(len+1))) { ast_log(LOG_ERROR, "Can't allocate %ld bytes to read message\n", len+1); + fclose(p); if(tempcopy) *(vmu->email) = '\0'; return -1; |