]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Add forgotten ap_pclosef() inthe error branch
authorMartin Kraemer <martin@apache.org>
Wed, 11 Dec 2002 21:17:10 +0000 (21:17 +0000)
committerMartin Kraemer <martin@apache.org>
Wed, 11 Dec 2002 21:17:10 +0000 (21:17 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x@97866 13f79535-47bb-0310-9956-ffa450edef68

src/modules/standard/mod_mime_magic.c

index 2ec733f77c44ab3c07df8790800d4f248f8bbcd0..232a01b8c1035524a8fa980fa5a93efc93324a54 100644 (file)
@@ -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;