apparmor: fix leak of null profile name if profile allocation fails
authorJohn Johansen <john.johansen@canonical.com>
Wed, 15 Nov 2017 23:25:30 +0000 (15:25 -0800)
committerJohn Johansen <john.johansen@canonical.com>
Tue, 21 Nov 2017 10:17:13 +0000 (02:17 -0800)
commit4633307e5ed6128975595df43f796a10c41d11c1
tree69a59e0adcd575811ee7b05190111929d89ca173
parente3bcfc148588e409685479f3d20ba3d66ae30035
apparmor: fix leak of null profile name if profile allocation fails

Fixes: d07881d2edb0 ("apparmor: move new_null_profile to after profile lookup fns()")
Reported-by: Seth Arnold <seth.arnold@canonical.com>
Signed-off-by: John Johansen <john.johansen@canonical.com>
security/apparmor/policy.c