diff options
author | Thomas White <taw@physics.org> | 2020-05-27 11:43:56 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2020-07-29 18:42:57 +0200 |
commit | 4b29778969d33cece1a943680b532ba37281a2bc (patch) | |
tree | b18a3e9dcd4ee0ff7ef67c452637bd959041ebbd /libcrystfel/src | |
parent | 199f01b01f65d254fcb514516eaaf67866b66bcb (diff) |
free_event_list: Handle NULL list
Diffstat (limited to 'libcrystfel/src')
-rw-r--r-- | libcrystfel/src/events.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libcrystfel/src/events.c b/libcrystfel/src/events.c index 3e23fe65..df4cb586 100644 --- a/libcrystfel/src/events.c +++ b/libcrystfel/src/events.c @@ -270,6 +270,8 @@ void free_event_list(struct event_list *el) { int ei; + if ( el == NULL ) return; + for ( ei=0; ei<el->num_events; ei++ ) { free_event(el->events[ei]); } |