Skip to content

Commit 9a722dc

Browse files
authored
Fix delete operator
1 parent a3cd24e commit 9a722dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/fann_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ void FannTest::AssertCreate(neural_net &net, unsigned int numLayers, const unsig
2424
for (unsigned int i = 0; i < numLayers; i++) {
2525
EXPECT_EQ(layers[i], layers_res[i]);
2626
}
27-
delete layers_res;
27+
delete[] layers_res;
2828

2929
EXPECT_EQ(neurons, net.get_total_neurons());
3030
EXPECT_EQ(connections, net.get_total_connections());

0 commit comments

Comments
 (0)