projects/linux·commit 0d54ee1c

security: introduce missing kfree

0d54ee1c · Vegard Nossum <[email protected]> · 2009-01-17 17:45:45 +01:00

Plug this leak.

Acked-by: David Howells <[email protected]>
Cc: James Morris <[email protected]>
Cc: <[email protected]>
Signed-off-by: Vegard Nossum <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Commit
0d54ee1c7850a954026deec4cd4885f331da35cc
Parents
1de9e8e7

Changes

1 files changed · +1 −0

FileStatusAddDelContent
security/keys/keyctl.cmodified+1−0View file

security/keys/keyctl.c

View file
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;