diff options
author | Thomas White <taw@physics.org> | 2014-11-14 17:29:52 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2014-11-14 17:29:52 +0100 |
commit | 9169781d25463b89bf7fdfb7b7c0c74f8a39a713 (patch) | |
tree | 781b9c17732b33b072b1fb2b8cd21c81ab754484 /libcrystfel | |
parent | d545f4f23c7bb31b016ea5935dfd10c4e761b5ac (diff) |
Allow free_dim_structure(NULL)
Diffstat (limited to 'libcrystfel')
-rw-r--r-- | libcrystfel/src/events.c | 1 |
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); } |