Merged revisions 92803 via svnmerge from
authorMark Michelson <mmichelson@digium.com>
Thu, 13 Dec 2007 19:53:21 +0000 (19:53 +0000)
committerMark Michelson <mmichelson@digium.com>
Thu, 13 Dec 2007 19:53:21 +0000 (19:53 +0000)
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

apps/app_voicemail.c

index b6136bb..30eed55 100644 (file)
@@ -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;
 }