aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel
diff options
context:
space:
mode:
Diffstat (limited to 'libcrystfel')
-rw-r--r--libcrystfel/src/stream.c1
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);