mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-09-02 15:25:27 +00:00
add parser subsystem reset functions
Signed-Off-By: Kees Cook <kees.cook@canonical.com>
This commit is contained in:
@@ -532,6 +532,13 @@ void dump_expanded_symtab(void)
|
||||
twalk(my_symtab, &dump_expanded_symtab_entry);
|
||||
}
|
||||
|
||||
void free_symtabs(void)
|
||||
{
|
||||
if (my_symtab)
|
||||
tdestroy(my_symtab, (__free_fn_t)&free_symtab);
|
||||
my_symtab = NULL;
|
||||
}
|
||||
|
||||
#ifdef UNIT_TEST
|
||||
#define MY_TEST(statement, error) \
|
||||
if (!(statement)) { \
|
||||
|
Reference in New Issue
Block a user