Commit 88ceae42 authored by Ben Boeckel's avatar Ben Boeckel

vtkDistributedDataFilter: plug memory leaks

Change-Id: If46406100cb9dddd762aa4353065c8dbde9aae49
parent c64d49fd
......@@ -1586,6 +1586,7 @@ vtkFloatArray **
{
vtkErrorMacro(<<
"vtkDistributedDataFilter::ExchangeIdArrays memory allocation");
delete [] recvSize;
delete [] recvArrays;
return NULL;
}
......@@ -1707,6 +1708,8 @@ vtkIdTypeArray **
{
vtkErrorMacro(<<
"vtkDistributedDataFilter::ExchangeIdArrays memory allocation");
delete [] sendSize;
delete [] recvSize;
return NULL;
}
mpiContr->NoBlockReceive(recvArrays[source], recvSize[source], source, tag, req);
......
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