mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-31 06:16:03 +00:00
parser: fix cache reference leak
Drop the reference to the libapparmor policy_cache pseudo object when the parser is done. Signed-off-by: Steve Beattie <steve@nxnw.org> Acked-by: Seth Arnold <seth.arnold@canonical.com>
This commit is contained in:
@@ -992,6 +992,7 @@ int main(int argc, char *argv[])
|
||||
|
||||
if (ofile)
|
||||
fclose(ofile);
|
||||
aa_policy_cache_unref(policy_cache);
|
||||
|
||||
return last_error;
|
||||
}
|
||||
|
Reference in New Issue
Block a user