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(); }