[!] fix memory leak