From f90d9f6e24c3241b6c8dbc13c555791f96e1930d Mon Sep 17 00:00:00 2001 From: karl Date: Wed, 16 Dec 2020 20:00:34 +0100 Subject: [PATCH] Fix false delete statement should be delete[] --- main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index 1225718..d335b8a 100644 --- a/main.cpp +++ b/main.cpp @@ -413,7 +413,7 @@ void main_classic(std::string infile, std::string outfile, int num_generations, } result_file.close(); - delete neighbor_counts; + delete[] neighbor_counts; timing->stopFinalization(); }