Skip to content

Commit 0d54ee1

Browse files
vegardtorvalds
authored andcommitted
security: introduce missing kfree
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]>
1 parent 1de9e8e commit 0d54ee1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

security/keys/keyctl.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,7 @@ long keyctl_join_session_keyring(const char __user *_name)
270270

271271
/* join the session */
272272
ret = join_session_keyring(name);
273+
kfree(name);
273274

274275
error:
275276
return ret;

0 commit comments

Comments
 (0)