v3.29 memory release to make your valgrind happy