From: Martin Kraemer Date: Wed, 11 Dec 2002 21:17:10 +0000 (+0000) Subject: Add forgotten ap_pclosef() inthe error branch X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=19cbba37b855cd40a46491b28e2d559531ebb437;p=thirdparty%2Fapache%2Fhttpd.git Add forgotten ap_pclosef() inthe error branch git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x@97866 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/modules/standard/mod_mime_magic.c b/src/modules/standard/mod_mime_magic.c index 2ec733f77c4..232a01b8c10 100644 --- a/src/modules/standard/mod_mime_magic.c +++ b/src/modules/standard/mod_mime_magic.c @@ -880,6 +880,7 @@ static int magic_process(request_rec *r) * try looking at the first HOWMANY bytes */ if ((nbytes = read(fd, (char *) buf, sizeof(buf) - 1)) == -1) { + (void) ap_pclosef(r->pool, fd); ap_log_rerror(APLOG_MARK, APLOG_ERR, r, MODNAME ": read failed: %s", r->filename); return HTTP_INTERNAL_SERVER_ERROR;