From 6a02432f083ffec20a652faa246818e6999531d6 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Thu, 2 Jul 2020 12:11:44 +0200 Subject: stream_close: Handle NULL --- libcrystfel/src/stream.c | 1 + 1 file changed, 1 insertion(+) 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); -- cgit v1.2.3