aboutsummaryrefslogtreecommitdiff
path: root/src/process_hkl.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-09-21 11:53:29 +0200
committerThomas White <taw@physics.org>2012-02-22 15:26:59 +0100
commit216e9684f5d2e7478f44f0d467d6532314710adb (patch)
tree900e8efb44f3d6ffa5ae5ba641ca2b0df27895b7 /src/process_hkl.c
parentb230d37a55456ae53ad8e1817c73641517fa6c28 (diff)
process_hkl: Initialise and free unit cell correctly
Diffstat (limited to 'src/process_hkl.c')
-rw-r--r--src/process_hkl.c4
1 files changed, 2 insertions, 2 deletions
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;
}