From: Jim Jagielski Date: Tue, 20 Nov 2012 16:03:09 +0000 (+0000) Subject: Bug from not using pools by default :) X-Git-Tag: 2.5.0-alpha~6092 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ab9803fcd7254e8aec0155e0c049634adde4fb55;p=apache Bug from not using pools by default :) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1411715 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/mpm/eventopt/skiplist.c b/server/mpm/eventopt/skiplist.c index b8a9db123d..9ff6d0ce13 100644 --- a/server/mpm/eventopt/skiplist.c +++ b/server/mpm/eventopt/skiplist.c @@ -44,7 +44,7 @@ static int get_b_rand(void) void *skiplist_alloc(Skiplist *sl, size_t size) { if (sl->pool) { - return apr_palloc(sl->pool, size); + return apr_pcalloc(sl->pool, size); } else { return ap_calloc(1, size); @@ -62,7 +62,7 @@ static apr_status_t skiplisti_init(Skiplist **s, apr_pool_t *p) { Skiplist *sl; if (p) { - sl = apr_palloc(p, sizeof(Skiplist)); + sl = apr_pcalloc(p, sizeof(Skiplist)); } else { sl = ap_calloc(1, sizeof(Skiplist));