summaryrefslogtreecommitdiffstats
path: root/test/test_btree.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2025-06-07 11:57:39 -0400
committerDavid Robillard <d@drobilla.net>2025-06-07 11:57:39 -0400
commitbb785b3daeba8d27116aeeb12be6e5b98539398d (patch)
treedfc84d79529e5f7e64c4add213d241de59e47d15 /test/test_btree.c
parent028b861412cee8787b5dfc2051c50a0d1c85dbcb (diff)
downloadzix-bb785b3daeba8d27116aeeb12be6e5b98539398d.tar.gz
zix-bb785b3daeba8d27116aeeb12be6e5b98539398d.tar.bz2
zix-bb785b3daeba8d27116aeeb12be6e5b98539398d.zip
Fix potential memory leak on failed allocation in POSIX environment
Adds a test for a new potentially failing allocation added in 8348512a60399d172fc83cd7bdf121d4c0b1015e "Use getenv() instead of environ to avoid issues on FreeBSD", and fixes the memory leak it exposes. Avoiding this temporary allocation (which is only for adding null termination) is the main reason getenv() was initially avoided.
Diffstat (limited to 'test/test_btree.c')
0 files changed, 0 insertions, 0 deletions