aboutsummaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorVegard Nossum <vegard.nossum@gmail.com>2009-01-17 17:45:45 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2009-01-24 16:36:24 -0800
commit0c48c3bf5fb4dc6b0c3f5691acf11e4839bc115e (patch)
tree50999182b25e14fedfa532ea78c96c87cb5d61c4 /security
parent8d8099f25038813c76441974d60b6130635b964b (diff)
security: introduce missing kfree
commit 0d54ee1c7850a954026deec4cd4885f331da35cc upstream. Plug this leak. Acked-by: David Howells <dhowells@redhat.com> Cc: James Morris <jmorris@namei.org> Signed-off-by: Vegard Nossum <vegard.nossum@gmail.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'security')
-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 9b4e0e9c9c6..3c0f421ec07 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;