1--- shmem/unix/shm.c.orig 2008-06-02 17:15:38.000000000 -0700 2+++ shmem/unix/shm.c 2008-08-12 20:27:35.000000000 -0700 3@@ -270,12 +270,14 @@ 4 APR_READ | APR_WRITE | APR_CREATE | APR_EXCL, 5 pool); 6 if (status != APR_SUCCESS) { 7+ close(tmpfd); 8 return status; 9 } 10 11 status = apr_file_trunc(file, new_m->realsize); 12 if (status != APR_SUCCESS) { 13 shm_unlink(filename); /* we're failing, remove the object */ 14+ apr_file_close(file); 15 return status; 16 } 17 new_m->base = mmap(NULL, reqsize, PROT_READ | PROT_WRITE, 18