From: Bill Stoddard Date: Fri, 8 Mar 2002 21:59:25 +0000 (+0000) Subject: No this is not a pretty site... close the cached file descriptor. There is no clean X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=07d1e70d9907096df1eb9f1595aa4c0941683689;p=apache No this is not a pretty site... close the cached file descriptor. There is no clean way to get this back into an apr_file_t since we are in the request pool cleanup. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93806 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/experimental/mod_mem_cache.c b/modules/experimental/mod_mem_cache.c index 4641167c0c..576361354d 100644 --- a/modules/experimental/mod_mem_cache.c +++ b/modules/experimental/mod_mem_cache.c @@ -168,7 +168,11 @@ static void cleanup_cache_object(cache_object_t *obj) free(mobj->m); } if (mobj->type == CACHE_TYPE_FILE && mobj->fd) { - apr_file_close(mobj->fd); +#ifdef WIN32 + CloseHandle(mobj->fd); +#else + close(mobj->fd); +#endif } if (mobj->header_out) { if (mobj->header_out[0].hdr)