commit | b5c33b10b9f4019757833538c82f64bd49c00f38 | [log] [tgz] |
---|---|---|
author | Denis Vlasenko <vda.linux@googlemail.com> | Mon Mar 12 19:49:07 2007 +0000 |
committer | Denis Vlasenko <vda.linux@googlemail.com> | Mon Mar 12 19:49:07 2007 +0000 |
tree | 023efc408ae2725f7a3aa17aa4d11e005769de83 | |
parent | 39c651e9097e0e55a52c897982d6e84d281f7396 [diff] [blame] |
chcon: remove redundant ifs: if(p) free(p)
diff --git a/selinux/chcon.c b/selinux/chcon.c index b7d7d5a..de077c3 100644 --- a/selinux/chcon.c +++ b/selinux/chcon.c
@@ -97,11 +97,8 @@ rc = TRUE; } skip: - /* FIXME: aren't these work ok on NULL ptr? Remove if() then */ - if (context) - context_free(context); - if (file_context) - freecon(file_context); + context_free(context); + freecon(file_context); return rc; }