PUB-603: Fix memory leak.