Correction memory leak v2