Fixed false positive memoryLeak #6013