summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordkazanc <dkazanc@hotmail.com>2019-01-07 16:23:45 +0000
committerdkazanc <dkazanc@hotmail.com>2019-01-07 16:23:45 +0000
commit3ee4173bf095696be9e2b5413518452b0512186f (patch)
tree367af299d61dac5e40f2f23110fb1814cfb37331
parentf16ccc9c9f61d785f339480a3570d958791197e8 (diff)
downloadregularization-3ee4173bf095696be9e2b5413518452b0512186f.tar.gz
regularization-3ee4173bf095696be9e2b5413518452b0512186f.tar.bz2
regularization-3ee4173bf095696be9e2b5413518452b0512186f.tar.xz
regularization-3ee4173bf095696be9e2b5413518452b0512186f.zip
fixes #83
-rw-r--r--Core/regularisers_CPU/TGV_core.c3
1 files changed, 3 insertions, 0 deletions
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;
}