chcon: remove redundant ifs: if(p) free(p)
This commit is contained in:
parent
39c651e909
commit
b5c33b10b9
@ -97,10 +97,7 @@ static int change_filedir_context(const char *fname, struct stat *stbuf, void *u
|
|||||||
rc = TRUE;
|
rc = TRUE;
|
||||||
}
|
}
|
||||||
skip:
|
skip:
|
||||||
/* FIXME: aren't these work ok on NULL ptr? Remove if() then */
|
|
||||||
if (context)
|
|
||||||
context_free(context);
|
context_free(context);
|
||||||
if (file_context)
|
|
||||||
freecon(file_context);
|
freecon(file_context);
|
||||||
|
|
||||||
return rc;
|
return rc;
|
||||||
|
Loading…
Reference in New Issue
Block a user