From 54f02b7e11877be16a6aa43084d98914e67ffc1e Mon Sep 17 00:00:00 2001 From: Qualys Security Advisory Date: Thu, 1 Jan 1970 00:00:00 +0000 Subject: [PATCH] 0096-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 bb2789c9..71000fe6 100644 --- a/top/top.c +++ b/top/top.c @@ -3420,7 +3420,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];