Commit 02c1bb10 authored by Sankhesh Jhaveri's avatar Sankhesh Jhaveri Committed by Kitware Robot

Merge topic 'LSan_vtkParseData'

875ca121 Fix leaks in vtkParseData.c and vtkWrapHierarchy.c
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Acked-by: Sankhesh Jhaveri's avatarSankhesh Jhaveri <sankhesh.jhaveri@kitware.com>
Merge-request: !3696
parents 72818c6b 875ca121
......@@ -117,6 +117,8 @@ void vtkParse_FreeTemplate(TemplateInfo *template_info)
vtkParse_FreeValue(template_info->Parameters[j]);
}
if (m > 0) { free(template_info->Parameters); }
free(template_info);
}
......
......@@ -746,6 +746,7 @@ static int vtkWrapHierarchy_CompareHierarchyFile(FILE *fp, char *lines[])
if (lines[i] == NULL)
{
free(line);
free(matched);
return 0;
}
......@@ -757,6 +758,7 @@ static int vtkWrapHierarchy_CompareHierarchyFile(FILE *fp, char *lines[])
{
if (matched[i] == 0)
{
free(line);
free(matched);
return 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment