]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
Net/Security: fix memory leaks from security_secid_to_secctx()
authorPaul Moore <paul.moore@hp.com>
Wed, 1 Aug 2007 15:12:59 +0000 (11:12 -0400)
committerJames Morris <jmorris@namei.org>
Thu, 2 Aug 2007 15:52:26 +0000 (11:52 -0400)
commite6e0871cce2ae04f5790543ad2f4ec36b23260ba
tree0af9d48482dbdb8b949fb673eb5bf48fd5611cc5
parent088999e98b8caecd31adc3b62223a228555c5ab7
Net/Security: fix memory leaks from security_secid_to_secctx()

The security_secid_to_secctx() function returns memory that must be freed
by a call to security_release_secctx() which was not always happening.  This
patch fixes two of these problems (all that I could find in the kernel source
at present).

Signed-off-by: Paul Moore <paul.moore@hp.com>
Acked-by: Stephen Smalley <sds@tycho.nsa.gov>
Signed-off-by: James Morris <jmorris@namei.org>
net/netlabel/netlabel_user.c
net/xfrm/xfrm_policy.c