[PATCH] selinux: kfree cleanup
[deliverable/linux.git] / security / selinux / hooks.c
index 932eef18db337293badeb4bf7c96471dcbf7e0e7..17a1189f1ff81c4a1e9f8686ba4f493cb6c96939 100644 (file)
@@ -1658,9 +1658,8 @@ static int selinux_bprm_secureexec (struct linux_binprm *bprm)
 
 static void selinux_bprm_free_security(struct linux_binprm *bprm)
 {
-       struct bprm_security_struct *bsec = bprm->security;
+       kfree(bprm->security);
        bprm->security = NULL;
-       kfree(bsec);
 }
 
 extern struct vfsmount *selinuxfs_mount;
This page took 0.030092 seconds and 5 git commands to generate.