Cosmetics, but support unsetting anything that may be set. Fixes: 99be0e6d066d7 ("table: add userdata support") Signed-off-by: Phil Sutter <phil@xxxxxx> --- src/table.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/table.c b/src/table.c index 13f01cfbf1e6f..1a5f6f3bcc507 100644 --- a/src/table.c +++ b/src/table.c @@ -74,6 +74,9 @@ void nftnl_table_unset(struct nftnl_table *t, uint16_t attr) case NFTNL_TABLE_NAME: xfree(t->name); break; + case NFTNL_TABLE_USERDATA: + xfree(t->user.data); + break; case NFTNL_TABLE_FLAGS: case NFTNL_TABLE_HANDLE: case NFTNL_TABLE_FAMILY: -- 2.43.0