summaryrefslogtreecommitdiffstats
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 23:24:46 +0100
commit0d54ee1c7850a954026deec4cd4885f331da35cc (patch)
tree00f5219a49428dabca10428cbeaaa2c44e774808
parentLinux 2.6.29-rc2 (diff)
downloadlinux-0d54ee1c7850a954026deec4cd4885f331da35cc.tar.xz
linux-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>
-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;