Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
0fd94fa0
Commit
0fd94fa0
authored
Jul 01, 2006
by
mkanat%bugzilla.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 343166: $template->process leaks 512K of RAM per call under mod_perl
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=justdave, a=justdave
parent
a0196b5d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletion
+15
-1
Bugzilla.pm
Bugzilla.pm
+15
-1
No files found.
Bugzilla.pm
View file @
0fd94fa0
...
...
@@ -300,7 +300,21 @@ sub custom_field_names {
sub
request_cache
{
if
(
$ENV
{
MOD_PERL
})
{
require
Apache2::
RequestUtil
;
return
Apache2::
RequestUtil
->
request
->
pnotes
();
my
$request
=
Apache2::
RequestUtil
->
request
;
my
$cache
=
$request
->
pnotes
();
# Sometimes mod_perl doesn't properly call DESTROY on all
# the objects in pnotes(), so we register a cleanup handler
# to make sure that this happens.
if
(
!
$cache
->
{
cleanup_registered
})
{
$request
->
push_handlers
(
PerlCleanupHandler
=>
sub
{
my
$r
=
shift
;
foreach
my
$key
(
keys
%
{
$r
->
pnotes
})
{
delete
$r
->
pnotes
->
{
$key
};
}
});
$cache
->
{
cleanup_registered
}
=
1
;
}
return
$cache
;
}
return
$_request_cache
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment