Commit 40f85c93 authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

corrected mismatched free() vs. delete[]

parent 2f02d984
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -77,7 +77,6 @@ NStencil::~NStencil()
{
  memory->destroy(stencil);
  memory->destroy(stencilxyz);
  memory->destroy(nstencil_multi);

  if (!stencil_multi) return;

@@ -86,6 +85,7 @@ NStencil::~NStencil()
    memory->destroy(stencil_multi[i]);
    memory->destroy(distsq_multi[i]);
  }
  delete [] nstencil_multi;
  delete [] stencil_multi;
  delete [] distsq_multi;
}