selinux: Cache NetLabel secattrs in the socket's security struct
[safe/jmp/linux-2.6] / security / selinux / hooks.c
index 632ac3e..3aa811e 100644 (file)
@@ -291,6 +291,7 @@ static void sk_free_security(struct sock *sk)
        struct sk_security_struct *ssec = sk->sk_security;
 
        sk->sk_security = NULL;
+       selinux_netlbl_sk_security_free(ssec);
        kfree(ssec);
 }