[Pkg-wmaker-commits] [wmbiff] 16/32: fix a potential file descriptor leak
Doug Torrance
dtorrance-guest at moszumanska.debian.org
Thu Aug 20 03:00:37 UTC 2015
This is an automated email from the git hooks/post-receive script.
dtorrance-guest pushed a commit to tag wmbiff_0_3_8
in repository wmbiff.
commit 025acb8ec654806c03e9066fdf847eae18cf337e
Author: bluehal <bluehal>
Date: Wed Mar 6 07:44:43 2002 +0000
fix a potential file descriptor leak
---
wmbiff/ShellClient.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/wmbiff/ShellClient.c b/wmbiff/ShellClient.c
index 762d4e0..7a32789 100644
--- a/wmbiff/ShellClient.c
+++ b/wmbiff/ShellClient.c
@@ -29,11 +29,14 @@ int shellCmdCheck(Pop3 pc)
return 1;
}
+ /* doesn't really need to be handled separately, but it
+ seems worth an error message */
if (fscanf(F, "%d\n", &(count_status)) != 1) {
DM(pc, DEBUG_ERROR,
"'%s' returned something other than an integer message count.\n",
pc->path);
pc->TotalMsgs = pc->UnreadMsgs = -1;
+ pclose(F);
return 1;
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmbiff.git
More information about the Pkg-wmaker-commits
mailing list