170610ef88
This is an automated DistroBaker update from upstream sources. If you do not know what this is about or would like to opt out, contact the OSCI team. Source: https://src.fedoraproject.org/rpms/policycoreutils.git#b96da6593911f3b75a2849b5cf8c90b3e98c2977
25 lines
761 B
Diff
25 lines
761 B
Diff
From e6821b5aa7f631efaceffd8de130f83c56a5c81a Mon Sep 17 00:00:00 2001
|
|
From: Petr Lautrbach <plautrba@redhat.com>
|
|
Date: Thu, 8 Nov 2018 09:20:58 +0100
|
|
Subject: [PATCH] semodule-utils: Fix RESOURCE_LEAK coverity scan defects
|
|
|
|
---
|
|
semodule-utils/semodule_package/semodule_package.c | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
diff --git a/semodule-utils/semodule_package/semodule_package.c b/semodule-utils/semodule_package/semodule_package.c
|
|
index 3515234e36de..7b75b3fd9bb4 100644
|
|
--- a/semodule-utils/semodule_package/semodule_package.c
|
|
+++ b/semodule-utils/semodule_package/semodule_package.c
|
|
@@ -74,6 +74,7 @@ static int file_to_data(const char *path, char **data, size_t * len)
|
|
}
|
|
if (!sb.st_size) {
|
|
*len = 0;
|
|
+ close(fd);
|
|
return 0;
|
|
}
|
|
|
|
--
|
|
2.30.0
|
|
|