tests/eal: fix memory leak