diff options
author | John Johansen <john.johansen@canonical.com> | 2015-11-18 14:41:05 -0500 |
---|---|---|
committer | John Johansen <john.johansen@canonical.com> | 2016-07-12 11:43:10 -0400 |
commit | 0b938a2e2cf0b0a2c8bac9769111545aff0fee97 (patch) | |
tree | 9b052c91d902f9ddf227695f16aaa9364f26d5b1 /security/apparmor | |
parent | 23ca7b640b4a55f8747301b6bd984dd05545f6a7 (diff) |
apparmor: fix ref count leak when profile sha1 hash is read
Signed-off-by: John Johansen <john.johansen@canonical.com>
Acked-by: Seth Arnold <seth.arnold@canonical.com>
Diffstat (limited to 'security/apparmor')
-rw-r--r-- | security/apparmor/apparmorfs.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/security/apparmor/apparmorfs.c b/security/apparmor/apparmorfs.c index 45a6199ce23b..0d8dd71f989e 100644 --- a/security/apparmor/apparmorfs.c +++ b/security/apparmor/apparmorfs.c | |||
@@ -331,6 +331,7 @@ static int aa_fs_seq_hash_show(struct seq_file *seq, void *v) | |||
331 | seq_printf(seq, "%.2x", profile->hash[i]); | 331 | seq_printf(seq, "%.2x", profile->hash[i]); |
332 | seq_puts(seq, "\n"); | 332 | seq_puts(seq, "\n"); |
333 | } | 333 | } |
334 | aa_put_profile(profile); | ||
334 | 335 | ||
335 | return 0; | 336 | return 0; |
336 | } | 337 | } |