From: Zofia Abramowska Date: Fri, 22 Nov 2013 09:38:06 +0000 (+0100) Subject: Fix memory leak on smack_cipso X-Git-Tag: v1.1.0~39 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6304f9a3f73312a7feb3b25fa593919744acb947;p=platform%2Fupstream%2Fsmack.git Fix memory leak on smack_cipso smack_cipso_free() didn't release main pointer, which was inconsistent with header description and further usage in apply_cipso_file(). --- diff --git a/libsmack/libsmack.c b/libsmack/libsmack.c index 140cd1a..db78247 100644 --- a/libsmack/libsmack.c +++ b/libsmack/libsmack.c @@ -357,6 +357,8 @@ void smack_cipso_free(struct smack_cipso *cipso) free(mapping); mapping = next_mapping; } + + free(cipso); } int smack_cipso_apply(struct smack_cipso *cipso)