test: fix leak