]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1335233 - Fix some memory leaks in jobqueue code
authorDylan William Hardison <dylan@hardison.net>
Fri, 3 Feb 2017 14:38:12 +0000 (09:38 -0500)
committerDylan William Hardison <dylan@hardison.net>
Fri, 3 Feb 2017 14:42:13 +0000 (09:42 -0500)
Bugzilla/JobQueue.pm

index a5d8737b2e553b785d9741281dcd682084142b4d..8540d12ed253cc8505c144834742775bcc4491cb 100644 (file)
@@ -147,6 +147,8 @@ sub set_pidfile {
 # Clear the request cache at the start of each run.
 sub work_once {
     my $self = shift;
+    Bugzilla::Hook::process('request_cleanup');
+    Bugzilla::Bug->CLEANUP;
     Bugzilla->clear_request_cache();
     return $self->SUPER::work_once(@_);
 }