diff options
author | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-12-13 20:03:20 +0000 |
---|---|---|
committer | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-12-13 20:03:20 +0000 |
commit | dd916cce6b40e759da75c9b8ed9a16524c007824 (patch) | |
tree | bd8a7f80a001acf42ac7d9cc35a033611078135f | |
parent | cbc0e71a63e867e9b80a071aae49193cd192d83f (diff) |
Prevent another potential fd leak
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@92807 f38db490-d61c-443f-a65b-d21fe96a405b
-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 b72d060f9..cd0aa21f1 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -2356,6 +2356,7 @@ static int imap_store_file(char *dir, char *mailboxuser, char *mailboxcontext, i rewind(p); if((buf = ast_malloc(len+1)) == NIL) { ast_log(LOG_ERROR, "Can't allocate %ld bytes to read message\n", len+1); + fclose(p); return -1; } fread(buf, len, 1, p); |