var func2= function(a) {
var prop = a.prop;
var temp = getJson(prop.innerProp);
if (temp) {
a.val = temp;
}
}
var func1 = function(a) {
var prop = a.prop;
prop.innerProp = a.val;
}
var a = {// some properties;
};
func2();
func1();
Is there cyclic refernece in a obj? I think there is and does it cause memory leak in nodeJs?
Is memory leak by cyclic refernce is corrected in node 18 version?
Does this memory leak increase RSS and heapUsed?