﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
1370	Memory leak in `EncCu::xCheckRDCostMergeGeo2Nx2N`	dumas		"Using VTM-10 compiled with Address Sanitizer, when encoding a video sequence in random-access, memory leaks appear in `EncCu::xCheckRDCostMergeGeo2Nx2N`. The same problem occurs when using either VTM-9 or VTM-8 instead of VTM-10.
For instance, when encoding ""D_BasketballPass"" in 4:2:0 via VTM-8.0 compiled with Address Sanitizer and using the standard configuration file for random-access, the beginning of the log reporting the memory leaks is given in the attachment ""sanitizer_memory_leak_xCheckRDCostMergeGeo2Nx2N.png"".
This arises from the fact that, in `EncCu::xCheckRDCostMergeGeo2Nx2N`, the dynamically allocated memories for the pointers `sadWholeBlk`, `pocMrg`, `MrgMv`, and `isSkipThisCand` are not freed before returning from either here [https://vcgit.hhi.fraunhofer.de/jvet/VVCSoftware_VTM/-/blob/45dfe06835aea43f37456ea54972ef31b765eacf/source/Lib/EncoderLib/EncCu.cpp#L2899] or from here [https://vcgit.hhi.fraunhofer.de/jvet/VVCSoftware_VTM/-/blob/45dfe06835aea43f37456ea54972ef31b765eacf/source/Lib/EncoderLib/EncCu.cpp#L2922]."	defect	closed	major	VTM-11.2	VTM	VTM-10.0rc1	fixed	Memory leak	ksuehring XiangLi fbossen jvet@…
