diff options
Diffstat (limited to 'src/table.c')
-rw-r--r-- | src/table.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/table.c b/src/table.c index ab0a8ea..09470e0 100644 --- a/src/table.c +++ b/src/table.c @@ -229,6 +229,7 @@ int nft_table_nlmsg_parse(const struct nlmsghdr *nlh, struct nft_table *t) return -1; if (tb[NFTA_TABLE_NAME]) { + xfree(t->name); t->name = strdup(mnl_attr_get_str(tb[NFTA_TABLE_NAME])); t->flags |= (1 << NFT_TABLE_ATTR_NAME); } |