X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fstatic.c;h=145014bc932b821ab315ed88e80811f644f28201;hb=07faae7c25ea8ed9c1ff3f5dd77eb7213a272ad0;hp=11b868ad5f56578214a9f1da1b0351f6ace2d5a6;hpb=bab826bb3fa8649d196208fffb4af8fba1a57544;p=citadel.git diff --git a/webcit/static.c b/webcit/static.c index 11b868ad5..145014bc9 100644 --- a/webcit/static.c +++ b/webcit/static.c @@ -60,6 +60,7 @@ void output_static(const char *what) begin_burst(); wc_printf("Cannot fstat %s: %s\n", what, strerror(errno)); end_burst(); + if (fd > 0) close(fd); return; }