gitlab-org--gitlab-foss/lib/banzai
Ahmad Sherif 504a3b5e6f Fix a memory leak caused by Banzai::Filter::SanitizationFilter
In Banzai::Filter::SanitizationFilter#customize_whitelist, we append
three lambdas that has reference to the SanitizationFilter instance,
which in turn (potentially) has a reference to the following chain:

context hash -> Project instance -> Repository instance -> lookup hash
-> various Rugged instances -> various mmap-ed git pack files.

All of the above is not garbage collected because the array we append
the lambdas to is the constant
HTML::Pipeline::SanitizationFilter::WHITELIST.
2016-08-14 22:28:18 +02:00
..
filter Fix a memory leak caused by Banzai::Filter::SanitizationFilter 2016-08-14 22:28:18 +02:00
pipeline
reference_parser Method for returning issues readable by a user 2016-07-29 12:51:18 +02:00
cross_project_reference.rb
filter.rb
filter_array.rb
note_renderer.rb
object_renderer.rb
pipeline.rb
querying.rb
redactor.rb
reference_extractor.rb
reference_parser.rb
renderer.rb