From 1d0bc02f7b05ab9d2ca8b9c2ebd4622b050b9d2c Mon Sep 17 00:00:00 2001 From: Julien Chemillier Date: Wed, 28 Sep 2022 10:14:20 +0200 Subject: [PATCH] Correction of a free issue --- src/cnn/free.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/cnn/free.c b/src/cnn/free.c index c7a7440..86b398c 100644 --- a/src/cnn/free.c +++ b/src/cnn/free.c @@ -78,11 +78,8 @@ void free_dense(Network* network, int pos) { void free_network_creation(Network* network) { free_a_cube_input_layer(network, 0, network->depth[0], network->width[0]); - - for (int i=0; i < network->max_size; i++) { - free(network->dim[i]); - } - free(network->dim); + free(network->width); + free(network->depth); free(network->kernel); free(network->input);