aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2014-11-14 17:29:52 +0100
committerThomas White <taw@physics.org>2014-11-14 17:29:52 +0100
commit9169781d25463b89bf7fdfb7b7c0c74f8a39a713 (patch)
tree781b9c17732b33b072b1fb2b8cd21c81ab754484 /libcrystfel/src
parentd545f4f23c7bb31b016ea5935dfd10c4e761b5ac (diff)
Allow free_dim_structure(NULL)
Diffstat (limited to 'libcrystfel/src')
-rw-r--r--libcrystfel/src/events.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libcrystfel/src/events.c b/libcrystfel/src/events.c
index 60727341..3062871d 100644
--- a/libcrystfel/src/events.c
+++ b/libcrystfel/src/events.c
@@ -622,6 +622,7 @@ struct dim_structure *default_dim_structure()
void free_dim_structure(struct dim_structure *hsd)
{
+ if ( hsd == NULL ) return;
free(hsd->dims);
free(hsd);
}