diff options
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; |