bind9/tests/libtest
Ondřej Surý 485aac9213
Rename 'free' variable to 'nfree' to not clash with free()
The beauty and horrors of the C - the compiler properly detects variable
shadowing, but you can freely shadow a standard function 'free()' with
variable called 'free'.  And if you reference 'free()' just as 'free'
you get the function pointer which means you can do also pointer
arithmetics, so 'free > 0' is always valid even when you delete the
local variable.

Replace the local variables 'free' with a name that doesn't shadow the
'free()' function to prevent future hard to detect bugs.

(cherry picked from commit 855960ce46)
2025-07-22 14:28:15 +02:00
..
dns.c Improve the badcache cleaning by adding LRU and using RCU 2024-11-27 17:07:03 +00:00
isc.c Remove redundant parentheses from the return statement 2024-11-19 14:26:52 +01:00
Makefile.am Get the tests working with liburcu 2023-05-12 20:48:31 +01:00
ns.c Drop superfluous isc_mem_get() NULL check 2024-12-13 13:50:06 +00:00
qp.c Rename 'free' variable to 'nfree' to not clash with free() 2025-07-22 14:28:15 +02:00