diff options
author | Jeff Trawick <trawick@apache.org> | 2002-04-16 20:25:57 +0000 |
---|---|---|
committer | Jeff Trawick <trawick@apache.org> | 2002-04-16 20:25:57 +0000 |
commit | 12aa3beb694cc62f117c3d0a6c6592a6bb626abd (patch) | |
tree | df52eada4549d124ff2dd1534d358de4be940d52 /mmap/unix | |
parent | 6196ac2da73233908deff8877058b9c9a5e1d753 (diff) | |
download | apr-12aa3beb694cc62f117c3d0a6c6592a6bb626abd.tar.gz |
standardize some apr_foo_close() functions (call apr_pool_cleanup_run())
a couple of these functions didn't kill the cleanup if it failed; we might
as well; the error isn't going to magically disappear next time we try
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@63272 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'mmap/unix')
-rw-r--r-- | mmap/unix/mmap.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/mmap/unix/mmap.c b/mmap/unix/mmap.c index 3f081308e..4a54b860e 100644 --- a/mmap/unix/mmap.c +++ b/mmap/unix/mmap.c @@ -199,13 +199,7 @@ APR_DECLARE(apr_status_t) apr_mmap_dup(apr_mmap_t **new_mmap, APR_DECLARE(apr_status_t) apr_mmap_delete(apr_mmap_t *mm) { - apr_status_t rv; - - if ((rv = mmap_cleanup(mm)) == APR_SUCCESS) { - apr_pool_cleanup_kill(mm->cntxt, mm, mmap_cleanup); - return APR_SUCCESS; - } - return rv; + return apr_pool_cleanup_run(mm->cntxt, mm, mmap_cleanup); } #endif |