Skip to content

Commit

Permalink
security: introduce missing kfree
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Vegard Nossum authored and Linus Torvalds committed Jan 17, 2009
1 parent 1de9e8e commit 0d54ee1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions security/keys/keyctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0d54ee1

Please sign in to comment.