[prev in list] [next in list] [prev in thread] [next in thread]
List: apache-modperl-cvs
Subject: cvs commit: modperl-2.0/xs/APR/Pool APR__Pool.h
From: stas () apache ! org
Date: 2003-09-30 21:18:40
[Download RAW message or body]
stas 2003/09/30 14:18:40
Modified: xs/APR/Pool APR__Pool.h
Log:
pools with no special data weren't created by us and therefore shouldn't
be destroyed.
Revision Changes Path
1.8 +3 -1 modperl-2.0/xs/APR/Pool/APR__Pool.h
Index: APR__Pool.h
===================================================================
RCS file: /home/cvs/modperl-2.0/xs/APR/Pool/APR__Pool.h,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -u -r1.7 -r1.8
--- APR__Pool.h 26 Sep 2003 08:29:26 -0000 1.7
+++ APR__Pool.h 30 Sep 2003 21:18:39 -0000 1.8
@@ -86,7 +86,9 @@
apr_pool_userdata_get((void **)&data, MP_APR_POOL_NEW, p);
if (!data) {
- data = (mpxs_pool_account_t *)apr_pcalloc(p, sizeof(*data));
+ /* pools with no special data weren't created by us and
+ * therefore shouldn't be destroyed */
+ return 0;
}
return data->destroyable && !data->ref_count;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic