CLEANUP: vars: always zero the pointers after a free()
authorWilly Tarreau <w@1wt.eu>
Fri, 26 Feb 2021 20:19:53 +0000 (21:19 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 26 Feb 2021 20:21:21 +0000 (21:21 +0100)
commit5b52b0039319aff61360838b83cb7247942646f6
tree250fe0bb0689027a9790efcb0c070540e9b23471
parent35cd7343563c3f0f6f6ad8c72e7810d817197bdf
CLEANUP: vars: always zero the pointers after a free()

In sample_store(), depending on the new sample types, the area pointer
was not always zeroed after being freed. Let's make sure it's always the
case to avoid the risk of dangling pointers being misused.
src/vars.c