Message ID | 20240710153322.18574-2-phil@nwl.cc |
---|---|
State | Accepted |
Delegated to: | Phil Sutter |
Headers | show |
Series | [libnftnl,1/2] chain: Support unsetting NFTNL_CHAIN_USERDATA attribute | expand |
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:
Cosmetics, but support unsetting anything that may be set. Fixes: 99be0e6d066d7 ("table: add userdata support") Signed-off-by: Phil Sutter <phil@nwl.cc> --- src/table.c | 3 +++ 1 file changed, 3 insertions(+)