Skip to content

remove xfree() and add free_const()+nft_gmp_free()

Thomas Haller netfilter-devel 2 versions – Applied

Status from this message: Applied.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 5 repliesApplied
  2. v14 patches 12 repliesSuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/4datatype: don't return a const string from cgroupv2_get_path()src/datatype.c+3 -30 replies
2/4gmputil: add nft_gmp_free() to free strings from mpz_get_str()include/gmputil.h src/evaluate.c src/gmputil.c+25 -40 replies
3/4all: add free_const() and use it instead of xfree()include/nft.h src/ct.c src/datatype.c +10 more+124 -1180 replies
4/4all: remove xfree() and use plain free()include/utils.h src/cache.c src/datatype.c +17 more+61 -670 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH nft v2 0/4] [RESENT] remove xfree() and add free_const()+nft_gmp_free()

RESENT of v1.

Also rebased on top of current master, which required minor adjustments.

Also minor adjustments to the commit messages.

Thomas Haller (4):
datatype: don't return a const string from cgroupv2_get_path()
gmputil: add nft_gmp_free() to free strings from mpz_get_str()
all: add free_const() and use it instead of xfree()
all: remove xfree() and use plain free()

 include/gmputil.h       |   2 +
 include/nft.h           |   6 ++
 include/utils.h         |   1 -
 src/cache.c             |   6 +-
 src/ct.c                |   2 +-
 src/datatype.c          |  18 ++---
 src/erec.c              |   6 +-
 src/evaluate.c          |  18 ++---
 src/expression.c        |   6 +-
 src/gmputil.c           |  21 +++++-
 src/json.c              |   2 +-
 src/libnftables.c       |  24 +++---
 src/meta.c              |   4 +-
 src/misspell.c          |   2 +-
 src/mnl.c               |  16 ++--
 src/netlink_linearize.c |   4 +-
 src/optimize.c          |  12 +--
 src/parser_bison.y      | 158 ++++++++++++++++++++--------------------
 src/rule.c              |  68 ++++++++---------
 src/scanner.l           |   6 +-
 src/segtree.c           |   4 +-
 src/statement.c         |   4 +-
 src/utils.c             |   5 --
 src/xt.c                |  10 +--
 24 files changed, 213 insertions(+), 192 deletions(-)
Signature · 1 line
2.41.0