Commit 875ca121 authored by Mmanu Chaturvedi's avatar Mmanu Chaturvedi

Fix leaks in vtkParseData.c and vtkWrapHierarchy.c

parent a8633801
......@@ -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