You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl-cvs@perl.apache.org by st...@apache.org on 2003/09/30 23:18:40 UTC

cvs commit: modperl-2.0/xs/APR/Pool APR__Pool.h

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;