diff options
| author | Vegard Nossum <vegard.nossum@gmail.com> | 2009-01-17 11:45:45 -0500 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-01-17 17:24:46 -0500 |
| commit | 0d54ee1c7850a954026deec4cd4885f331da35cc (patch) | |
| tree | 00f5219a49428dabca10428cbeaaa2c44e774808 | |
| parent | 1de9e8e70f5acc441550ca75433563d91b269bbe (diff) | |
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>
| -rw-r--r-- | security/keys/keyctl.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/security/keys/keyctl.c b/security/keys/keyctl.c index e9335e1c6cf5..b1ec3b4ee17d 100644 --- a/security/keys/keyctl.c +++ b/security/keys/keyctl.c | |||
| @@ -270,6 +270,7 @@ long keyctl_join_session_keyring(const char __user *_name) | |||
| 270 | 270 | ||
| 271 | /* join the session */ | 271 | /* join the session */ |
| 272 | ret = join_session_keyring(name); | 272 | ret = join_session_keyring(name); |
| 273 | kfree(name); | ||
| 273 | 274 | ||
| 274 | error: | 275 | error: |
| 275 | return ret; | 276 | return ret; |
