Blame SOURCES/0006-policycoreutils-free-memory-of-allocated-context-in-.patch

5b70e6
From 32611aea6543e3a8f32635857e37b4332b0b5c99 Mon Sep 17 00:00:00 2001
5b70e6
From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= <cgzones@googlemail.com>
5b70e6
Date: Wed, 14 Jul 2021 20:13:43 +0200
5b70e6
Subject: [PATCH] policycoreutils: free memory of allocated context in newrole
5b70e6
MIME-Version: 1.0
5b70e6
Content-Type: text/plain; charset=UTF-8
5b70e6
Content-Transfer-Encoding: 8bit
5b70e6
5b70e6
Found by scan-build.
5b70e6
5b70e6
Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
5b70e6
---
5b70e6
 policycoreutils/newrole/newrole.c | 1 +
5b70e6
 1 file changed, 1 insertion(+)
5b70e6
5b70e6
diff --git a/policycoreutils/newrole/newrole.c b/policycoreutils/newrole/newrole.c
5b70e6
index 0264531acef4..7c1f062f5a2a 100644
5b70e6
--- a/policycoreutils/newrole/newrole.c
5b70e6
+++ b/policycoreutils/newrole/newrole.c
5b70e6
@@ -1239,6 +1239,7 @@ int main(int argc, char *argv[])
5b70e6
 		free(pw.pw_dir);
5b70e6
 		free(pw.pw_shell);
5b70e6
 		free(shell_argv0);
5b70e6
+		free(new_context);
5b70e6
 		return exit_code;
5b70e6
 	}
5b70e6
 
5b70e6
-- 
5b70e6
2.32.0
5b70e6