svn commit: trunk/busybox/selinux
vda at busybox.net
vda at busybox.net
Mon Mar 12 19:49:08 UTC 2007
Author: vda
Date: 2007-03-12 12:49:07 -0700 (Mon, 12 Mar 2007)
New Revision: 18077
Log:
chcon: remove redundant ifs: if(p) free(p)
Modified:
trunk/busybox/selinux/chcon.c
Changeset:
Modified: trunk/busybox/selinux/chcon.c
===================================================================
--- trunk/busybox/selinux/chcon.c 2007-03-12 19:44:58 UTC (rev 18076)
+++ trunk/busybox/selinux/chcon.c 2007-03-12 19:49:07 UTC (rev 18077)
@@ -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;
}
More information about the busybox-cvs
mailing list