Skip to content

Fix one-time memory leak of encoding_list#188

Open
jhawthorn wants to merge 1 commit into
brianmario:masterfrom
jhawthorn:encoding_list_leak
Open

Fix one-time memory leak of encoding_list#188
jhawthorn wants to merge 1 commit into
brianmario:masterfrom
jhawthorn:encoding_list_leak

Conversation

@jhawthorn

Copy link
Copy Markdown

We memoize this result after calculating it, and the amount of memory is tiny, so this shouldn't cause any harm. Still it's good to fix so that tools can find more serious leaks.

This was found by compiling ruby with ASAN/LSAN and running:

ASAN_OPTIONS="detect_leaks=1" RUBY_FREE_AT_EXIT=1 bundle exec rake

We memoize this result after calculating it, and the amount of memory is
tiny, so this shouldn't cause any harm. Still it's good to fix so that
tools can find more serious leaks.

This was found by compiling ruby with ASAN/LSAN and running:

    ASAN_OPTIONS="detect_leaks=1" RUBY_FREE_AT_EXIT=1 bundle exec rake
@jhawthorn jhawthorn changed the title Fix one-time memory leak if encoding_list Fix one-time memory leak in encoding_list Nov 18, 2024
@jhawthorn jhawthorn changed the title Fix one-time memory leak in encoding_list Fix one-time memory leak of encoding_list Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant