mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 11:46:19 +00:00
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>
This commit is contained in:
parent
1de9e8e70f
commit
0d54ee1c78
1 changed files with 1 additions and 0 deletions
|
@ -270,6 +270,7 @@ long keyctl_join_session_keyring(const char __user *_name)
|
||||||
|
|
||||||
/* join the session */
|
/* join the session */
|
||||||
ret = join_session_keyring(name);
|
ret = join_session_keyring(name);
|
||||||
|
kfree(name);
|
||||||
|
|
||||||
error:
|
error:
|
||||||
return ret;
|
return ret;
|
||||||
|
|
Loading…
Reference in a new issue