Message ID | 1457391064-6660-6-git-send-email-kamal@canonical.com |
---|---|
State | New |
Headers | show |
diff --git a/security/keys/process_keys.c b/security/keys/process_keys.c index bd536cb..db91639 100644 --- a/security/keys/process_keys.c +++ b/security/keys/process_keys.c @@ -794,6 +794,7 @@ long join_session_keyring(const char *name) ret = PTR_ERR(keyring); goto error2; } else if (keyring == new->session_keyring) { + key_put(keyring); ret = 0; goto error2; }