From: Vegard Nossum Date: Sat, 17 Jan 2009 16:45:45 +0000 (+0100) Subject: security: introduce missing kfree X-Git-Tag: v2.6.29-rc3~49 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=0d54ee1c7850a954026deec4cd4885f331da35cc;p=linux-2.6-omap-h63xx.git security: introduce missing kfree Plug this leak. Acked-by: David Howells Cc: James Morris Cc: Signed-off-by: Vegard Nossum Signed-off-by: Linus Torvalds --- diff --git a/security/keys/keyctl.c b/security/keys/keyctl.c index e9335e1c6cf..b1ec3b4ee17 100644 --- a/security/keys/keyctl.c +++ b/security/keys/keyctl.c @@ -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;