|
Zbigniew Jędrzejewski-Szmek |
d044ab |
From 83030c7aea991d863591df2e09d41bb19d6e01d0 Mon Sep 17 00:00:00 2001
|
|
Zbigniew Jędrzejewski-Szmek |
d044ab |
From: WaLyong Cho <walyong.cho@samsung.com>
|
|
Zbigniew Jędrzejewski-Szmek |
d044ab |
Date: Thu, 13 Jul 2017 13:06:34 +0900
|
|
Zbigniew Jędrzejewski-Szmek |
d044ab |
Subject: [PATCH] core: modify resource leak by SmackProcessLabel=
|
|
Zbigniew Jędrzejewski-Szmek |
d044ab |
|
|
Zbigniew Jędrzejewski-Szmek |
d044ab |
(cherry picked from commit 5b8e1b7755092e162bcf0bad8afe2e55dfbbd9e2)
|
|
Zbigniew Jędrzejewski-Szmek |
d044ab |
---
|
|
Zbigniew Jędrzejewski-Szmek |
d044ab |
src/core/execute.c | 1 +
|
|
Zbigniew Jędrzejewski-Szmek |
d044ab |
1 file changed, 1 insertion(+)
|
|
Zbigniew Jędrzejewski-Szmek |
d044ab |
|
|
Zbigniew Jędrzejewski-Szmek |
d044ab |
diff --git a/src/core/execute.c b/src/core/execute.c
|
|
Zbigniew Jędrzejewski-Szmek |
d044ab |
index d72e5bf08c..4ed133fb6a 100644
|
|
Zbigniew Jędrzejewski-Szmek |
d044ab |
--- a/src/core/execute.c
|
|
Zbigniew Jędrzejewski-Szmek |
d044ab |
+++ b/src/core/execute.c
|
|
Zbigniew Jędrzejewski-Szmek |
d044ab |
@@ -3099,6 +3099,7 @@ void exec_context_done(ExecContext *c) {
|
|
Zbigniew Jędrzejewski-Szmek |
d044ab |
c->utmp_id = mfree(c->utmp_id);
|
|
Zbigniew Jędrzejewski-Szmek |
d044ab |
c->selinux_context = mfree(c->selinux_context);
|
|
Zbigniew Jędrzejewski-Szmek |
d044ab |
c->apparmor_profile = mfree(c->apparmor_profile);
|
|
Zbigniew Jędrzejewski-Szmek |
d044ab |
+ c->smack_process_label = mfree(c->smack_process_label);
|
|
Zbigniew Jędrzejewski-Szmek |
d044ab |
|
|
Zbigniew Jędrzejewski-Szmek |
d044ab |
c->syscall_filter = set_free(c->syscall_filter);
|
|
Zbigniew Jędrzejewski-Szmek |
d044ab |
c->syscall_archs = set_free(c->syscall_archs);
|