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 Use a more powerful query to match videos in img tags 2016-07-19 18:51:09 +02:00
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 Object renderer read_multi rendered entries from Cache 2016-07-12 14:35:29 +02:00
pipeline.rb
querying.rb
redactor.rb Optimize system note visibility checking by hiding notes that 2016-07-11 15:09:21 -07:00
reference_extractor.rb Retrieve rendered HTML from cache in one request 2016-07-21 21:17:25 +02:00
reference_parser.rb
renderer.rb Make banzai module that handles markdown singleton 2016-07-19 15:12:15 +02:00