diff options
author | Joe Orton <jorton@apache.org> | 2004-05-27 15:52:46 +0000 |
---|---|---|
committer | Joe Orton <jorton@apache.org> | 2004-05-27 15:52:46 +0000 |
commit | cf0d42fd01e45f7b92c100e6e1a5dcf604b518db (patch) | |
tree | b1ac78166d5bb783cb0f926ce77ee77fb092f650 /shmem | |
parent | e869e0ec325e51d037dd16ff8ff1af022f014c92 (diff) | |
download | apr-cf0d42fd01e45f7b92c100e6e1a5dcf604b518db.tar.gz |
* shmem/unix/shm.c (apr_shm_attach): Remove palloc->ENOMEM checking.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@65134 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'shmem')
-rw-r--r-- | shmem/unix/shm.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/shmem/unix/shm.c b/shmem/unix/shm.c index 826252438..e78ea1113 100644 --- a/shmem/unix/shm.c +++ b/shmem/unix/shm.c @@ -105,9 +105,6 @@ APR_DECLARE(apr_status_t) apr_shm_create(apr_shm_t **m, if (filename == NULL) { #if APR_USE_SHMEM_MMAP_ZERO || APR_USE_SHMEM_MMAP_ANON new_m = apr_palloc(pool, sizeof(apr_shm_t)); - if (!new_m) { - return APR_ENOMEM; - } new_m->pool = pool; new_m->reqsize = reqsize; new_m->realsize = reqsize + @@ -168,9 +165,6 @@ APR_DECLARE(apr_status_t) apr_shm_create(apr_shm_t **m, #if APR_USE_SHMEM_SHMGET_ANON new_m = apr_palloc(pool, sizeof(apr_shm_t)); - if (!new_m) { - return APR_ENOMEM; - } new_m->pool = pool; new_m->reqsize = reqsize; new_m->realsize = reqsize; @@ -216,9 +210,6 @@ APR_DECLARE(apr_status_t) apr_shm_create(apr_shm_t **m, /* Name-based shared memory */ else { new_m = apr_palloc(pool, sizeof(apr_shm_t)); - if (!new_m) { - return APR_ENOMEM; - } new_m->pool = pool; new_m->reqsize = reqsize; new_m->filename = apr_pstrdup(pool, filename); @@ -414,9 +405,6 @@ APR_DECLARE(apr_status_t) apr_shm_attach(apr_shm_t **m, apr_size_t nbytes; new_m = apr_palloc(pool, sizeof(apr_shm_t)); - if (!new_m) { - return APR_ENOMEM; - } new_m->pool = pool; new_m->filename = apr_pstrdup(pool, filename); @@ -473,9 +461,6 @@ APR_DECLARE(apr_status_t) apr_shm_attach(apr_shm_t **m, key_t shmkey; new_m = apr_palloc(pool, sizeof(apr_shm_t)); - if (!new_m) { - return APR_ENOMEM; - } /* FIXME: does APR_OS_DEFAULT matter for reading? */ status = apr_file_open(&file, filename, |