]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: tree-wide: drop a few useless null-checks before free()
authorWilly Tarreau <w@1wt.eu>
Wed, 25 Feb 2026 09:40:48 +0000 (10:40 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 26 Feb 2026 07:24:03 +0000 (08:24 +0100)
commitfb5e280e0d0d7b99459461c19bfa32e1500b42ac
tree5333068ff6befb302ff234105da37039be324b9f
parent709c3be845d81db730c0a61268f1c1576c9e141f
CLEANUP: tree-wide: drop a few useless null-checks before free()

We only support platforms where free(NULL) is a NOP so that
null checks are useless before free(). Let's drop them to keep
the code clean. There were a few in cfgparse-global, flt_trace,
ssl_sock and stats.
src/cfgparse-global.c
src/flt_trace.c
src/ssl_sock.c
src/stats.c