diff options
-rw-r--r-- | libcrystfel/src/datatemplate.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libcrystfel/src/datatemplate.c b/libcrystfel/src/datatemplate.c index efe2ad28..ecd12439 100644 --- a/libcrystfel/src/datatemplate.c +++ b/libcrystfel/src/datatemplate.c @@ -1158,6 +1158,8 @@ void data_template_free(DataTemplate *dt) { int i; + if ( dt == NULL ) return; + free_all_rigid_groups(dt); free_all_rigid_group_collections(dt); |