projects
/
platform
/
upstream
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
39c651e
)
chcon: remove redundant ifs: if(p) free(p)
author
Denis Vlasenko
<vda.linux@googlemail.com>
Mon, 12 Mar 2007 19:49:07 +0000
(19:49 -0000)
committer
Denis Vlasenko
<vda.linux@googlemail.com>
Mon, 12 Mar 2007 19:49:07 +0000
(19:49 -0000)
selinux/chcon.c
patch
|
blob
|
history
diff --git
a/selinux/chcon.c
b/selinux/chcon.c
index
b7d7d5a
..
de077c3
100644
(file)
--- 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;
}