torture: fix mem leak found by ASAN