From f4a437c36aa53b701466328cba05ac4a34151b63 Mon Sep 17 00:00:00 2001
From: Samo Penic <samo.penic@gmail.com>
Date: Tue, 24 May 2016 19:55:45 +0000
Subject: [PATCH] Added automated python script system-wide installation in build.sh

---
 src/tsmeasure.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/src/tsmeasure.c b/src/tsmeasure.c
index 394f42a..a0769ee 100644
--- a/src/tsmeasure.c
+++ b/src/tsmeasure.c
@@ -34,6 +34,8 @@
 }
 
 void vesicle_calculate_ulm2(ts_vesicle *vesicle){
+	complex_sph_free(vesicle->sphHarmonics);
+
 	vesicle->sphHarmonics=complex_sph_init(vesicle->vlist,21);
 	vesicle_volume(vesicle);
 	preparationSh(vesicle,getR0(vesicle));
@@ -65,7 +67,9 @@
 		struct dirent *ent;
 		ent=list[n];	
             	i=rindex(ent->d_name,'.');
-            	if(i==NULL) continue;
+            	if(i==NULL) {
+			continue;
+		}
             	if(strcmp(i+1,"vtu")==0){
                     j=rindex(ent->d_name,'_');
                     if(j==NULL) continue;
@@ -78,6 +82,7 @@
                     	tstep++;
 			//vesicle_free(vesicle);
                     free(number);
+			vesicle_free(vesicle);
             	}
 		free(ent);  
 		}

--
Gitblit v1.9.3