diff options
author | Thomas White <taw@physics.org> | 2020-07-02 12:11:44 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2020-07-29 18:53:44 +0200 |
commit | 6a02432f083ffec20a652faa246818e6999531d6 (patch) | |
tree | 7ecee97cfdddfeab0b3c17c4785bf10734383900 /libcrystfel | |
parent | 8184002cfb10a33516b34bf40bacf8f38b629505 (diff) |
stream_close: Handle NULL
Diffstat (limited to 'libcrystfel')
-rw-r--r-- | libcrystfel/src/stream.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libcrystfel/src/stream.c b/libcrystfel/src/stream.c index ec49ec9d..4b3696d5 100644 --- a/libcrystfel/src/stream.c +++ b/libcrystfel/src/stream.c @@ -1299,6 +1299,7 @@ int stream_get_fd(Stream *st) */ void stream_close(Stream *st) { + if ( st == NULL ) return; free(st->audit_info); free(st->geometry_file); fclose(st->fh); |