diff options
-rw-r--r-- | selinux/chcon.c | 7 |
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 | |||
97 | rc = TRUE; | 97 | rc = TRUE; |
98 | } | 98 | } |
99 | skip: | 99 | skip: |
100 | /* FIXME: aren't these work ok on NULL ptr? Remove if() then */ | 100 | context_free(context); |
101 | if (context) | 101 | freecon(file_context); |
102 | context_free(context); | ||
103 | if (file_context) | ||
104 | freecon(file_context); | ||
105 | 102 | ||
106 | return rc; | 103 | return rc; |
107 | } | 104 | } |