diff --git a/modules/slotmem/mod_slotmem_shm.c b/modules/slotmem/mod_slotmem_shm.c index 88b202d34a..0b88eea7e8 100644 --- a/modules/slotmem/mod_slotmem_shm.c +++ b/modules/slotmem/mod_slotmem_shm.c @@ -317,11 +317,10 @@ static apr_status_t cleanup_slotmem(void *is_startup) } if (unlink) { /* Some systems may require the descriptor to be closed before - * unlink, thus call destroy() first (this won't free mem->shm - * so it's safe to call delete() afterward). + * unlink, thus call destroy() first. */ apr_shm_destroy(mem->shm); - apr_shm_delete(mem->shm); + apr_shm_remove(mem->name, mem->pool); } }