Close log file handle after using it. Found by cppcheck.

This commit is contained in:
wiz 2010-01-17 23:09:02 +00:00
parent 15989318ee
commit 7bd4f0a241
1 changed files with 5 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: gmon.c,v 1.30 2009/02/12 04:57:46 lukem Exp $ */
/* $NetBSD: gmon.c,v 1.31 2010/01/17 23:09:02 wiz Exp $ */
/*
* Copyright (c) 2003, 2004 Wasabi Systems, Inc.
@ -69,7 +69,7 @@
#if 0
static char sccsid[] = "@(#)gmon.c 8.1 (Berkeley) 6/4/93";
#else
__RCSID("$NetBSD: gmon.c,v 1.30 2009/02/12 04:57:46 lukem Exp $");
__RCSID("$NetBSD: gmon.c,v 1.31 2010/01/17 23:09:02 wiz Exp $");
#endif
#endif
@ -481,6 +481,9 @@ _mcleanup()
}
}
close(fd);
#ifdef DEBUG
close(logfd);
#endif
}
/*