Forces the Garbage Collector to run after creating the DFs
This commit is contained in:
2
Rakefile
2
Rakefile
@@ -14,7 +14,7 @@ end
|
|||||||
begin
|
begin
|
||||||
require 'rspec/core/rake_task'
|
require 'rspec/core/rake_task'
|
||||||
RSpec::Core::RakeTask.new(:spec)
|
RSpec::Core::RakeTask.new(:spec)
|
||||||
# exec << :spec
|
exec << :spec
|
||||||
rescue LoadError
|
rescue LoadError
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -10,6 +10,10 @@ module WPScan
|
|||||||
def before_scan
|
def before_scan
|
||||||
DB::DynamicFinders::Plugin.create_versions_finders
|
DB::DynamicFinders::Plugin.create_versions_finders
|
||||||
DB::DynamicFinders::Theme.create_versions_finders
|
DB::DynamicFinders::Theme.create_versions_finders
|
||||||
|
|
||||||
|
# Force the Garbage Collector to run due to the above method being
|
||||||
|
# quite heavy in objects allocation
|
||||||
|
GC.start
|
||||||
end
|
end
|
||||||
|
|
||||||
def run
|
def run
|
||||||
|
|||||||
@@ -18,6 +18,10 @@ module WPScan
|
|||||||
|
|
||||||
def before_scan
|
def before_scan
|
||||||
WPScan::DB::DynamicFinders::Wordpress.create_versions_finders
|
WPScan::DB::DynamicFinders::Wordpress.create_versions_finders
|
||||||
|
|
||||||
|
# Force the Garbage Collector to run due to the above method being
|
||||||
|
# quite heavy in objects allocation
|
||||||
|
GC.start
|
||||||
end
|
end
|
||||||
|
|
||||||
def run
|
def run
|
||||||
@@ -29,8 +33,6 @@ module WPScan
|
|||||||
show_progression: user_interaction?
|
show_progression: user_interaction?
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
# GC.start
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user