diff --git a/tests/fann_test.cpp b/tests/fann_test.cpp index 34c53471..06e9f71b 100644 --- a/tests/fann_test.cpp +++ b/tests/fann_test.cpp @@ -24,7 +24,7 @@ void FannTest::AssertCreate(neural_net &net, unsigned int numLayers, const unsig for (unsigned int i = 0; i < numLayers; i++) { EXPECT_EQ(layers[i], layers_res[i]); } - delete layers_res; + delete[] layers_res; EXPECT_EQ(neurons, net.get_total_neurons()); EXPECT_EQ(connections, net.get_total_connections());