[test/api] Fix leaks
1 file changed