diff options
author | Vegard Nossum <vegard.nossum@gmail.com> | 2009-01-17 16:45:45 (GMT) |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-01-17 22:24:46 (GMT) |
commit | 0d54ee1c7850a954026deec4cd4885f331da35cc (patch) | |
tree | 00f5219a49428dabca10428cbeaaa2c44e774808 /security | |
parent | 1de9e8e70f5acc441550ca75433563d91b269bbe (diff) | |
download | linux-0d54ee1c7850a954026deec4cd4885f331da35cc.tar.xz |
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')
-rw-r--r-- | security/keys/keyctl.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/security/keys/keyctl.c b/security/keys/keyctl.c index e9335e1..b1ec3b4 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; |