From 3ee4173bf095696be9e2b5413518452b0512186f Mon Sep 17 00:00:00 2001 From: dkazanc Date: Mon, 7 Jan 2019 16:23:45 +0000 Subject: fixes #83 --- Core/regularisers_CPU/TGV_core.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Core/regularisers_CPU/TGV_core.c b/Core/regularisers_CPU/TGV_core.c index edd77b2..477e909 100644 --- a/Core/regularisers_CPU/TGV_core.c +++ b/Core/regularisers_CPU/TGV_core.c @@ -100,6 +100,9 @@ float TGV_main(float *U0, float *U, float lambda, float alpha1, float alpha0, in newU(V1, V1_old, (long)(dimX), (long)(dimY)); newU(V2, V2_old, (long)(dimX), (long)(dimY)); } /*end of iterations*/ + /*freeing*/ + free(P1);free(P2);free(Q1);free(Q2);free(Q3);free(U_old); + free(V1);free(V2);free(V1_old);free(V2_old); return *U; } -- cgit v1.2.3