]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Prevent a possible fd leak.
authorMark Michelson <mmichelson@digium.com>
Thu, 13 Dec 2007 19:49:55 +0000 (19:49 +0000)
committerMark Michelson <mmichelson@digium.com>
Thu, 13 Dec 2007 19:49:55 +0000 (19:49 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@92803 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_voicemail.c

index 490ecf1084515bd410e7a47d98739708108dad33..b72d060f9ea8b51e6da80c40fb4021bce60ed5ad 100644 (file)
@@ -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;
 }