fix leak in ft-test-helpers.cc