Fix ipsub net issue: ipv4 matching ipv6 rule

This commit is contained in:
Nick Peng
2019-01-26 23:39:54 +08:00
parent 1600eaed1f
commit 5057a8e45d
4 changed files with 41 additions and 9 deletions

View File

@@ -221,6 +221,9 @@ Clear_Radix(radix_tree_t *radix, rdx_cb_t func, void *cbctx)
void
Destroy_Radix(radix_tree_t *radix, rdx_cb_t func, void *cbctx)
{
if (radix == NULL) {
return;
}
Clear_Radix(radix, func, cbctx);
free(radix);
}