Forum OpenACS Q&A: Re: Need some tips about memory allocation

Collapse
Posted by Claudio Pasolini on
$doc delete is your friend
Collapse
Posted by Antonio Pisano on
Thanks Claudio. And do you think not deleting a dom tree could cause a leak?
Collapse
Posted by Dave Bauer on
Yes it does cause a memory leak.

Since the interpreter continues after a request, you need to free the documents. The thread cleanup does not take care of them.