Lsan: fix memory leak