2
0
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:
John Johansen
2009-07-24 07:34:11 +00:00
parent 0137b992b4
commit 627c044e4d
5 changed files with 25 additions and 11 deletions

View File

@@ -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)) { \