Skip to content
Snippets Groups Projects
Commit ee8b67df authored by Andreas Gampe's avatar Andreas Gampe
Browse files

Sepolicy-Analyze: Plug leak

Destroy the policy before exiting (for successful = expected runs).

Bug: 37757759
Test: ASAN_OPTIONS= SANITIZE_HOST=address m
Change-Id: I67e35fbede696ec020a53b69a6cef9f374fae167
parent 608969b3
No related branches found
No related tags found
No related merge requests found
...@@ -57,6 +57,7 @@ int main(int argc, char **argv) ...@@ -57,6 +57,7 @@ int main(int argc, char **argv)
rc = analyze_components[i].func(argc - 2, argv + 2, &policydb); rc = analyze_components[i].func(argc - 2, argv + 2, &policydb);
if (rc && USAGE_ERROR) { if (rc && USAGE_ERROR) {
usage(argv[0]); } usage(argv[0]); }
policydb_destroy(&policydb);
return rc; return rc;
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment