Commit 0d54ee1c7850a954026deec4cd4885f331da35cc

Authored by Vegard Nossum
Committed by Linus Torvalds
1 parent 1de9e8e70f

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>

Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff

security/keys/keyctl.c
... ... @@ -270,6 +270,7 @@
270 270  
271 271 /* join the session */
272 272 ret = join_session_keyring(name);
  273 + kfree(name);
273 274  
274 275 error:
275 276 return ret;