Skip to content

Commit

Permalink
Merge pull request #135 from mjunix/patch-1
Browse files Browse the repository at this point in the history
Fix delete operator
  • Loading branch information
bukka authored Jan 26, 2023
2 parents a3cd24e + 9a722dc commit 8409b42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/fann_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 8409b42

Please sign in to comment.