Forces the Garbage Collector to run after creating the DFs

This commit is contained in:
erwanlr
2019-04-01 19:25:25 +01:00
parent 2e00aea16e
commit e8f215ae00
3 changed files with 9 additions and 3 deletions

View File

@@ -10,6 +10,10 @@ module WPScan
def before_scan
DB::DynamicFinders::Plugin.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
def run