You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ji...@apache.org on 2012/11/20 17:03:10 UTC
svn commit: r1411715 - /httpd/httpd/trunk/server/mpm/eventopt/skiplist.c
Author: jim
Date: Tue Nov 20 16:03:09 2012
New Revision: 1411715
URL: http://svn.apache.org/viewvc?rev=1411715&view=rev
Log:
Bug from not using pools by default :)
Modified:
httpd/httpd/trunk/server/mpm/eventopt/skiplist.c
Modified: httpd/httpd/trunk/server/mpm/eventopt/skiplist.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/mpm/eventopt/skiplist.c?rev=1411715&r1=1411714&r2=1411715&view=diff
==============================================================================
--- httpd/httpd/trunk/server/mpm/eventopt/skiplist.c (original)
+++ httpd/httpd/trunk/server/mpm/eventopt/skiplist.c Tue Nov 20 16:03:09 2012
@@ -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(Skipl
{
Skiplist *sl;
if (p) {
- sl = apr_palloc(p, sizeof(Skiplist));
+ sl = apr_pcalloc(p, sizeof(Skiplist));
}
else {
sl = ap_calloc(1, sizeof(Skiplist));