aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorjvech <jmvalenciae@unal.edu.co>2024-09-08 09:25:50 -0500
committerjvech <jmvalenciae@unal.edu.co>2024-09-08 09:25:50 -0500
commitf451cc936991e5095b1cb02262b5b0a9f12693f1 (patch)
treefb9718158d5222f2581cf93905e0de145444b43d /src/main.c
parenta63ee8ba14aad0e364e928399b24196c72a4217f (diff)
fix: memory leaks fixed
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 63a2fa9..01ada0a 100644
--- a/src/main.c
+++ b/src/main.c
@@ -152,6 +152,8 @@ int main(int argc, char *argv[]) {
nn_network_free_weights(network, ml_configs.network_size);
free(network);
+ free(X.data);
+ free(y.data);
util_free_config(&ml_configs);
return 0;
}
Feel free to download, copy and edit any repo