httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject svn commit: r1411715 - /httpd/httpd/trunk/server/mpm/eventopt/skiplist.c
Date Tue, 20 Nov 2012 16:03:10 GMT
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));



Mime
View raw message