Submitted by: Matthieu Estrade [apache@moresecurity.org]
Reviewed by: Brad Nicholes
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102073
13f79535-47bb-0310-9956-
ffa450edef68
return NULL;
#if APR_HAS_SHARED_MEMORY
- cache = (util_ald_cache_t *)util_ald_alloc(st->cache_rmm, sizeof(util_ald_cache_t));
+ cache = (util_ald_cache_t *)apr_rmm_addr_get(st->cache_rmm, apr_rmm_calloc(st->cache_rmm, sizeof(util_ald_cache_t)));
#else
- cache = (util_ald_cache_t *)util_ald_alloc(NULL, sizeof(util_ald_cache_t));
+ cache = (util_ald_cache_t *)calloc(sizeof(util_ald_cache_t), 1);
#endif
if (!cache)
return NULL;