diff --git a/src/examples/https_fileserver_example.c b/src/examples/https_fileserver_example.c index 99ec50b3..1479f23d 100644 --- a/src/examples/https_fileserver_example.c +++ b/src/examples/https_fileserver_example.c @@ -143,7 +143,10 @@ http_ahc (void *cls, { fd = fileno (file); if (-1 == fd) - return MHD_NO; /* internal error */ + { + (void) fclose (file); + return MHD_NO; /* internal error */ + } if ( (0 != fstat (fd, &buf)) || (! S_ISREG (buf.st_mode)) ) {