summaryrefslogtreecommitdiffstats
path: root/src/chain.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/chain.c')
-rw-r--r--src/chain.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/chain.c b/src/chain.c
index e2296d3..97f6d95 100644
--- a/src/chain.c
+++ b/src/chain.c
@@ -597,7 +597,6 @@ static int nft_chain_xml_parse(struct nft_chain *c, char *xml)
goto err;
strncpy(c->name, name, NFT_CHAIN_MAXNAMELEN);
- xfree(name);
c->flags |= (1 << NFT_CHAIN_ATTR_NAME);
if (nft_mxml_num_parse(tree, "handle", MXML_DESCEND_FIRST, BASE_DEC,
@@ -650,8 +649,6 @@ static int nft_chain_xml_parse(struct nft_chain *c, char *xml)
goto err;
hooknum = nft_str2hooknum(hooknum_str);
- xfree(hooknum_str);
-
if (hooknum < 0)
goto err;