summaryrefslogtreecommitdiff
path: root/shmem
diff options
context:
space:
mode:
authorjorton <jorton@13f79535-47bb-0310-9956-ffa450edef68>2004-05-27 15:52:46 +0000
committerjorton <jorton@13f79535-47bb-0310-9956-ffa450edef68>2004-05-27 15:52:46 +0000
commitd0ea338a4f23feaad0942e9efb029b1e9fe9daf8 (patch)
treeb1ac78166d5bb783cb0f926ce77ee77fb092f650 /shmem
parent5d27abb736f64f02cb8d51335599a52addb18558 (diff)
downloadlibapr-d0ea338a4f23feaad0942e9efb029b1e9fe9daf8.tar.gz
* shmem/unix/shm.c (apr_shm_attach): Remove palloc->ENOMEM checking.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65134 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'shmem')
-rw-r--r--shmem/unix/shm.c15
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,