checkpolicy: disable leak detection
Breaking ASAN host builds. Bugs: me Test: build with SANITIZE_HOST=address Change-Id: Idb72d16d8fbe4d082b94994854e488f57ef4bb26
This commit is contained in:
parent
c20d8480e5
commit
c8d5fc8b44
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue