Skip to content

Commit

Permalink
fix mismatched free/delete issue from valgrind results
Browse files Browse the repository at this point in the history
  • Loading branch information
dicengine committed Mar 21, 2018
1 parent 5ca5e09 commit a721d7a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/global/triangle/DICe_TriangleUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -573,14 +573,14 @@ Teuchos::RCP<DICe::mesh::Mesh> generate_tri_mesh(const DICe::mesh::Base_Element_
delete[] in.holelist;
delete[] in.segmentlist;
delete[] in.segmentmarkerlist;
delete[] out.pointlist;
delete[] out.pointmarkerlist;
delete[] out.trianglelist;
free(out.pointlist);
free(out.pointmarkerlist);
free(out.trianglelist);
delete[] out.triangleattributelist;
delete[] out.segmentlist;
delete[] out.segmentmarkerlist;
delete[] out.edgelist;
delete[] out.edgemarkerlist;
free(out.segmentlist);
free(out.segmentmarkerlist);
free(out.edgelist);
free(out.edgemarkerlist);
}
return mesh;
}
Expand Down

0 comments on commit a721d7a

Please sign in to comment.