When the rule table is allocated, the root node is allocated. But it
cannot be deleted by the add_del API, or the table is useless.
When the table is free, the root node is not free and there is memory
leak. Let's add pool_flush when the rule table is free.
Type: fix
Change-Id: I58c3e040cd101c7db501d99a373ad78d85321b8f
Signed-off-by: Steven Luong <[email protected]>
void RT (mma_rules_table_free) (RTT (mma_rules_table) * srt)
{
+ RTT (mma_rule) * rule;
+
+ pool_flush (rule, srt->rules, ({}));
pool_free (srt->rules);
}