Here it's the patch about the memory leak.