Commit 322f5d31 authored by Sean McBride's avatar Sean McBride

BUG: fixed memory leak warned about by clang static analyzer.

Change-Id: Ic4334f509e64697c7eecc73ad0e78ac03e1a7403
parent 609ca2fe
......@@ -123,10 +123,8 @@ int vtkStrahlerMetric::RequestData(vtkInformation *vtkNotUsed(request),
// The output model should share the data of the input.
output->ShallowCopy(input);
vtkFloatArray *metric = vtkFloatArray::New();
// Create a new array to hold the metric.
metric = vtkFloatArray::New();
vtkFloatArray *metric = vtkFloatArray::New();
metric->SetName(this->MetricArrayName);
metric->SetNumberOfValues(input->GetNumberOfVertices());
......
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