From 4c0c5aac8cda3a36ebd0c5c394a0d2eb2c191980 Mon Sep 17 00:00:00 2001 From: Lukas Kogler Date: Tue, 20 Jun 2017 10:27:26 +0200 Subject: [PATCH] correctly use delete[] instead of delete in python_mesh.cpp --- libsrc/meshing/python_mesh.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libsrc/meshing/python_mesh.cpp b/libsrc/meshing/python_mesh.cpp index b75562e7..dff080f7 100644 --- a/libsrc/meshing/python_mesh.cpp +++ b/libsrc/meshing/python_mesh.cpp @@ -463,7 +463,7 @@ DLL_HEADER void ExportNetgenMeshing(py::module &m) if(id==0) delete infile; infile = new istringstream(string((const char*)buf, (size_t)strs)); - delete buf; + delete[] buf; #else self.Load(*infile);