Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
secondary_parents is malloc in
ParentRecord::ProcessParents(char *val, bool isPrimary)
this->secondary_parents = (pRecord *)ats_malloc(sizeof(pRecord) * numTok); //line:372
but no place to free it,which will cause memery leak.
fix in
ParentRecord::~ParentRecord()
{
if(parents != NULL)
if(primary_parents != NULL)
{ ats_free(primary_parents); }if(second_parents != NULL)
{ ats_free(second_parents); }......