diff options
author | Daniil Kazantsev <dkazanc3@googlemail.com> | 2019-01-07 16:24:49 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-07 16:24:49 +0000 |
commit | 125924cb3a553ae1e0341a731531c4d4320b5d8f (patch) | |
tree | 367af299d61dac5e40f2f23110fb1814cfb37331 | |
parent | f16ccc9c9f61d785f339480a3570d958791197e8 (diff) | |
parent | 3ee4173bf095696be9e2b5413518452b0512186f (diff) | |
download | regularization-125924cb3a553ae1e0341a731531c4d4320b5d8f.tar.gz regularization-125924cb3a553ae1e0341a731531c4d4320b5d8f.tar.bz2 regularization-125924cb3a553ae1e0341a731531c4d4320b5d8f.tar.xz regularization-125924cb3a553ae1e0341a731531c4d4320b5d8f.zip |
Merge pull request #84 from vais-ral/TGVCPU_fix
fixes #83
-rw-r--r-- | Core/regularisers_CPU/TGV_core.c | 3 |
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; } |