On Wed, Oct 10, 2001 at 08:11:02PM -0700, Doug MacEachern wrote: > On Wed, 10 Oct 2001, Philippe M. Chiasson wrote: > > > I am trying to get pnotes not to leak, and I need to free the dynamically allocated > > HV in the rcfg->pnotes. > > you can do this: > > #ifdef USE_ITHREADS > modperl_interp_t *interp = modperl_interp_select(r, NULL, r->server); > dTHXa(interp->perl); > #endif
Thanks, and might that be slightly more usefull in a macro like :
#define MP_dTHX \
dTHX; \
#ifdef USE_ITHREADS \
modperl_interp_t *interp = modperl_interp_select(r, NULL, r->server); \
dTHXa(interp->perl); \
#endif
??
> since an interpreter will have already been selected from the interpreter
> pool, it'll get pulled out of the userdata in r->pool at this point and be
> the same interpreter that served the request.
Good. But I discovered another slight annoyance I can't quite resolve.
ap_hook_create_request
is used to create 'r' for every request, I guessed, but there doesn't seem to be a
clean way
to handle destruction/cleaning of that request. So now I am left wondering when/how
to step
in just before a request obj is de-allocated, to free stuff that wasn't allocated with
apr_pools.
--
+----------------------------------------------------+
| Philippe M. Chiasson <[EMAIL PROTECTED]> |
+----------------------------------------------------+
| F9BF E0C2 480E 7680 1AE5 3631 CB32 A107 88C3 A5A5 |
+----------------------------------------------------+
gethostent not implemented : Your C library apparently
doesn't implement gethostent(), probably because if it did,
it'd feel morally obligated to return every hostname on the
Internet.
-- perldiag(1)
perl -e '$$=\${gozer};{$_=unpack(P26,pack(L,$$));/^Just Another Perl
Hacker!\n$/&&print||$$++&&redo}'
msg02026/pgp00000.pgp
Description: PGP signature
