client-test: fix error path leak