Adds support to the BW Docker image for running the BW client under Valgrind if the environment variable VALGRIND_ENABLED is set;
Runs the core functionality tests under Valgrind as part of the CI build on Travis.
Fixes a couple of harmless memory leaks, so that Valgrind reports no errors at time of PR submission.
This means any subsequent commits and PRs to the client daemon will get automatically checked for memory leaks.
I haven't yet looked into Valgrinding the Postgres extension; I expect that to be trickier, because of the custom palloc allocator used there, and because it runs inside a forked child of Postgres rather than a standalone executable.
This PR:
This means any subsequent commits and PRs to the client daemon will get automatically checked for memory leaks.
I haven't yet looked into Valgrinding the Postgres extension; I expect that to be trickier, because of the custom
palloc
allocator used there, and because it runs inside a forked child of Postgres rather than a standalone executable.