From 7b7940ae342745055de213ce564554a4020f4a00 Mon Sep 17 00:00:00 2001 From: Aaron Miller Date: Sun, 27 Nov 2016 00:46:39 -0500 Subject: [PATCH] Fixed duplicate cuda_free in layer.c --- src/layer.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/layer.c b/src/layer.c index ccd0daf0..fe4e60d6 100644 --- a/src/layer.c +++ b/src/layer.c @@ -31,9 +31,7 @@ void free_layer(layer l) if(l.weights_gpu) cuda_free(l.weights_gpu); if(l.weight_updates_gpu) cuda_free(l.weight_updates_gpu); if(l.col_image_gpu) cuda_free(l.col_image_gpu); - if(l.weights_gpu) cuda_free(l.weights_gpu); if(l.biases_gpu) cuda_free(l.biases_gpu); - if(l.weight_updates_gpu) cuda_free(l.weight_updates_gpu); if(l.bias_updates_gpu) cuda_free(l.bias_updates_gpu); if(l.output_gpu) cuda_free(l.output_gpu); if(l.delta_gpu) cuda_free(l.delta_gpu);