summaryrefslogtreecommitdiffstats
path: root/security/keys
diff options
context:
space:
mode:
authorVegard Nossum <vegard.nossum@gmail.com>2009-01-17 17:45:45 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2009-01-17 14:24:46 -0800
commit0d54ee1c7850a954026deec4cd4885f331da35cc (patch)
tree00f5219a49428dabca10428cbeaaa2c44e774808 /security/keys
parent1de9e8e70f5acc441550ca75433563d91b269bbe (diff)
downloadlinux-stable-0d54ee1c7850a954026deec4cd4885f331da35cc.tar.gz
linux-stable-0d54ee1c7850a954026deec4cd4885f331da35cc.tar.bz2
linux-stable-0d54ee1c7850a954026deec4cd4885f331da35cc.zip
security: introduce missing kfree
Plug this leak. Acked-by: David Howells <dhowells@redhat.com> Cc: James Morris <jmorris@namei.org> Cc: <stable@kernel.org> Signed-off-by: Vegard Nossum <vegard.nossum@gmail.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'security/keys')
-rw-r--r--security/keys/keyctl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/security/keys/keyctl.c b/security/keys/keyctl.c
index e9335e1c6cf5..b1ec3b4ee17d 100644
--- a/security/keys/keyctl.c
+++ b/security/keys/keyctl.c
@@ -270,6 +270,7 @@ long keyctl_join_session_keyring(const char __user *_name)
/* join the session */
ret = join_session_keyring(name);
+ kfree(name);
error:
return ret;