From: mkanat%bugzilla.org <> Date: Wed, 25 Jun 2008 05:23:11 +0000 (+0000) Subject: Bug 441592: DB connections not closing under mod_perl X-Git-Tag: bugzilla-3.0.5~18 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7966784cd38a2677c31f9fc5497e1250a34a5adf;p=thirdparty%2Fbugzilla.git Bug 441592: DB connections not closing under mod_perl Patch By Max Kanat-Alexander r=dkl, a=mkanat --- diff --git a/mod_perl.pl b/mod_perl.pl index bd6ef1002e..e7067f3853 100644 --- a/mod_perl.pl +++ b/mod_perl.pl @@ -100,10 +100,12 @@ sub handler : method { package Bugzilla::ModPerl::CleanupHandler; use strict; use Apache2::Const -compile => qw(OK); +use Bugzilla; sub handler { my $r = shift; + Bugzilla::_cleanup(); # Sometimes mod_perl doesn't properly call DESTROY on all # the objects in pnotes() foreach my $key (keys %{$r->pnotes}) {