aboutsummaryrefslogtreecommitdiff
path: root/src/process_hkl.c
diff options
context:
space:
mode:
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;
}