facia tool: fix memory leak