From 216e9684f5d2e7478f44f0d467d6532314710adb Mon Sep 17 00:00:00 2001 From: Thomas White Date: Tue, 21 Sep 2010 11:53:29 +0200 Subject: process_hkl: Initialise and free unit cell correctly --- src/process_hkl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/process_hkl.c') diff --git a/src/process_hkl.c b/src/process_hkl.c index bba43250..a00d1e99 100644 --- a/src/process_hkl.c +++ b/src/process_hkl.c @@ -519,7 +519,7 @@ int main(int argc, char *argv[]) FILE *fh; double *model; unsigned int *counts; - UnitCell *cell; + UnitCell *cell = NULL; int config_maxonly = 0; int config_startafter = 0; int config_stopafter = 0; @@ -791,7 +791,7 @@ int main(int argc, char *argv[]) free(model); free(counts); free(output); - cell_free(cell); + if ( cell != NULL ) cell_free(cell); return 0; } -- cgit v1.2.3