Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix memory leak in setupterm #733

Merged
merged 1 commit into from
Jul 29, 2024
Merged

Fix memory leak in setupterm #733

merged 1 commit into from
Jul 29, 2024

Conversation

peterzhu2118
Copy link
Member

The allocated Fiddle::Pointer never gets freed because it doesn't have a free function defined for when it gets garbage collected. This commit changes it to use the default free function.

The allocated Fiddle::Pointer never gets freed because it doesn't have a
free function defined for when it gets garbage collected. This commit
changes it to use the default free function.
Copy link
Member

@st0012 st0012 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thx!

@st0012 st0012 merged commit 0796dcd into master Jul 29, 2024
79 checks passed
@st0012 st0012 deleted the pz-setupterm-leak branch July 29, 2024 15:07
matzbot pushed a commit to ruby/ruby that referenced this pull request Jul 29, 2024
(ruby/reline#733)

The allocated Fiddle::Pointer never gets freed because it doesn't have a
free function defined for when it gets garbage collected. This commit
changes it to use the default free function.

ruby/reline@0796dcd497
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants