memory leak for Vacuum_2D example
Running on Ubuntu 18.04 with gcc 8.4.0. Compiled with
--with-parmetis --with-jemalloc --with-hdf5=/home/mivkov/local/spack/opt/spack/linux-ubuntu18.04-skylake/gcc-8.3.0/hdf5-1.10.5-mqqg7t7wlchbz4ph5uz5mbcg4k7tfwxf/bin/h5pcc --with-hydro-dimension=2 --with-hydro=gizmo-mfv --with-riemann-solver=exact --enable-mpi=no --disable-doxygen-doc --enable-debug --enable-sanitizer --enable-undefined-sanitizer --enable-debugging-checks
On the freshly pulled master branch, running the Vacuum_2D example stops with
[00457.2] engine_drift_all: Drifting all to t=1.000000e-01
[00457.2] engine_print_stats: Saving statistics at t=1.000000e-01
2047 9.995117e-02 1.0000000 0.0000000 4.882813e-05 45 45 19056 0 0 0 155.401 8
2048 1.000000e-01 1.0000000 0.0000000 4.882813e-05 45 56 32768 0 0 0 301.101 0
=================================================================
==29462==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 1152000 byte(s) in 1 object(s) allocated from:
#0 0x7f6c561e5db0 in posix_memalign (/usr/lib/x86_64-linux-gnu/libasan.so.5+0xeedb0)
#1 0x5566b6bd2847 in swift_memalign memuse.h:59
#2 0x5566b6bd2847 in space_getcells /home/mivkov/local/swiftsim/src/space.c:4019
#3 0x5566b6bd51dd in space_split_recursive /home/mivkov/local/swiftsim/src/space.c:3453
#4 0x5566b6c04bdf in space_split_mapper /home/mivkov/local/swiftsim/src/space.c:3893
#5 0x5566b6f39651 in threadpool_chomp /home/mivkov/local/swiftsim/src/threadpool.c:161
#6 0x5566b6f39f15 in threadpool_runner /home/mivkov/local/swiftsim/src/threadpool.c:188
#7 0x7f6c558fc6da in start_thread /build/glibc-2ORdQG/glibc-2.27/nptl/pthread_create.c:463
SUMMARY: AddressSanitizer: 1152000 byte(s) leaked in 1 allocation(s).
which should be the final time step...