Skip to content
Snippets Groups Projects
Commit b617e3e5 authored by Nestler, Michael's avatar Nestler, Michael
Browse files

fixed delete[] line544

parent bd3b03d4
No related branches found
No related tags found
No related merge requests found
...@@ -541,7 +541,7 @@ namespace AMDiS { namespace io { ...@@ -541,7 +541,7 @@ namespace AMDiS { namespace io {
data[i] = static_cast<T>(values[i]); data[i] = static_cast<T>(values[i]);
file.write(reinterpret_cast<char*>(&data[0]), sizeof(T) * size); file.write(reinterpret_cast<char*>(&data[0]), sizeof(T) * size);
delete data; delete[] data;
return sizeof(T) * size; return sizeof(T) * size;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment