From 58d847961ab71ea97e0532ca07a0cd50ca4f9917 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Mon, 8 Jun 2009 20:32:59 +0000 Subject: [PATCH] Close f if its not stdout, from cppcheck git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25275 ec53bebd-3082-4978-b11e-865c3cabbd6b --- include/bits.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/bits.c b/include/bits.c index 9e9b4a285..1070428c5 100644 --- a/include/bits.c +++ b/include/bits.c @@ -236,5 +236,8 @@ int main(int argc, char **argv) fprintf(f, "\n"); #endif /* KRB5 */ fprintf(f, "#endif /* %s */\n", hb); + + if (f != stdout) + fclose(f); return 0; } -- 2.11.4.GIT