test freeman983 memory leak fix