From ce8141af4947517f246ff6a5541960dd811160db Mon Sep 17 00:00:00 2001 From: Jarkko Sakkinen Date: Fri, 11 Nov 2011 11:34:52 +0200 Subject: [PATCH] smackctl: fixed a memory leak in cipso_free() --- utils/smackctl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/utils/smackctl.c b/utils/smackctl.c index 7ab7d51..9a58bf6 100644 --- a/utils/smackctl.c +++ b/utils/smackctl.c @@ -401,6 +401,8 @@ static void cipso_free(struct cipso *cipso) free(mapping); mapping = next_mapping; } + + free(cipso); } static int cipso_apply(struct cipso *cipso) -- 2.7.4