OZP-17: fix memory leak