From e877d4f4c4be9640e89c412579b3659c520d6b6d Mon Sep 17 00:00:00 2001 From: Qualys Security Advisory Date: Thu, 1 Jan 1970 00:00:00 +0000 Subject: [PATCH] top: Fix double-fclose() in configs_read(). It happens only if RCFILE_NOERR is defined (it is not, by default). --- top/top.c | 1 - 1 file changed, 1 deletion(-) diff --git a/top/top.c b/top/top.c index 50c9b322..bc609aad 100644 --- a/top/top.c +++ b/top/top.c @@ -3884,7 +3884,6 @@ default_or_error: #ifdef RCFILE_NOERR { RCF_t rcdef = DEF_RCFILE; int i; - fclose(fp); Rc = rcdef; for (i = 0 ; i < GROUPSMAX; i++) Winstk[i].rc = Rc.win[i];