checkpolicy: disable leak detection

Breaking ASAN host builds.

Bugs: me
Test: build with SANITIZE_HOST=address
Change-Id: Idb72d16d8fbe4d082b94994854e488f57ef4bb26
This commit is contained in:
Steven Moreland 2024-04-15 22:49:24 +00:00
parent c20d8480e5
commit c8d5fc8b44

View file

@ -92,6 +92,11 @@
#include "checkpolicy.h"
#include "parse_util.h"
// ANDROID: this code does not call policydb_destroy, perhaps others
const char *__asan_default_options() {
return "detect_leaks=0";
}
static policydb_t policydb;
static sidtab_t sidtab;