Blame SOURCES/quota-4.04-xqmstats-Fix-a-file-descriptor-leak-in-main.patch

30c500
From 869f514310b72169a294baa37f5a90a291f719f3 Mon Sep 17 00:00:00 2001
30c500
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
30c500
Date: Thu, 23 Aug 2018 11:51:47 +0200
30c500
Subject: [PATCH 3/3] xqmstats: Fix a file descriptor leak in main()
30c500
MIME-Version: 1.0
30c500
Content-Type: text/plain; charset=UTF-8
30c500
Content-Transfer-Encoding: 8bit
30c500
30c500
Signed-off-by: Petr Písař <ppisar@redhat.com>
30c500
---
30c500
 xqmstats.c | 1 +
30c500
 1 file changed, 1 insertion(+)
30c500
30c500
diff --git a/xqmstats.c b/xqmstats.c
30c500
index cdac4a6..59b1d66 100644
30c500
--- a/xqmstats.c
30c500
+++ b/xqmstats.c
30c500
@@ -35,6 +35,7 @@ int main(int argc, char **argv)
30c500
 	if ((stats = fopen(XQMSTATS, "r")) == NULL) {
30c500
 		if ((stats = fopen(STATFILE, "r")) == NULL) {
30c500
 			errstr(_("The running kernel does not support XFS\n"));
30c500
+			fclose(xqm);
30c500
 			return 1;
30c500
 		}
30c500
 	}
30c500
-- 
30c500
2.14.4
30c500