aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--selinux/chcon.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/selinux/chcon.c b/selinux/chcon.c
index b7d7d5a9e..de077c380 100644
--- a/selinux/chcon.c
+++ b/selinux/chcon.c
@@ -97,11 +97,8 @@ static int change_filedir_context(const char *fname, struct stat *stbuf, void *u
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;
}