diff options
author | Vegard Nossum <vegard.nossum@gmail.com> | 2009-01-17 17:45:45 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-01-24 16:41:33 -0800 |
commit | c534bf90e2075626bbf862353c112a9de2d3dd42 (patch) | |
tree | 52029e537dcd3a4f999e7b4a0cfd1b17c5eb3c04 | |
parent | e361713ccd13a6df0129786b0b108a36587b83c7 (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>
-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 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; |