summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/xt.h2
-rw-r--r--src/statement.c6
-rw-r--r--src/xt.c2
3 files changed, 2 insertions, 8 deletions
diff --git a/include/xt.h b/include/xt.h
index ab59bb3d..9fc51508 100644
--- a/include/xt.h
+++ b/include/xt.h
@@ -9,7 +9,7 @@ struct rule;
struct output_ctx;
void xt_stmt_xlate(const struct stmt *stmt, struct output_ctx *octx);
-void xt_stmt_release(const struct stmt *stmt);
+void xt_stmt_destroy(struct stmt *stmt);
void netlink_parse_target(struct netlink_parse_ctx *ctx,
const struct location *loc,
diff --git a/src/statement.c b/src/statement.c
index b2370f87..7f9c10b3 100644
--- a/src/statement.c
+++ b/src/statement.c
@@ -866,12 +866,6 @@ static void xt_stmt_print(const struct stmt *stmt, struct output_ctx *octx)
xt_stmt_xlate(stmt, octx);
}
-static void xt_stmt_destroy(struct stmt *stmt)
-{
- xfree(stmt->xt.name);
- xt_stmt_release(stmt);
-}
-
static const struct stmt_ops xt_stmt_ops = {
.type = STMT_XT,
.name = "xt",
diff --git a/src/xt.c b/src/xt.c
index 906b2fde..b0f5a30c 100644
--- a/src/xt.c
+++ b/src/xt.c
@@ -78,7 +78,7 @@ void xt_stmt_xlate(const struct stmt *stmt, struct output_ctx *octx)
#endif
}
-void xt_stmt_release(const struct stmt *stmt)
+void xt_stmt_destroy(struct stmt *stmt)
{
#ifdef HAVE_LIBXTABLES
switch (stmt->xt.type) {