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

Memory Leak in TIC Function When Variable is at the End (Ruby) #2707

Open
hadamak opened this issue Oct 17, 2024 · 0 comments
Open

Memory Leak in TIC Function When Variable is at the End (Ruby) #2707

hadamak opened this issue Oct 17, 2024 · 0 comments

Comments

@hadamak
Copy link

hadamak commented Oct 17, 2024

There is a memory leak in the TIC function when a variable is placed at the end of the function in Ruby. This can be easily confirmed with large arrays, but it also occurs with simple expressions like $prev_mouse = mouse when placed at the end. The memory leak does not occur if the function explicitly returns nil.

# script:  ruby

def TIC
	(0..10000).to_a
end
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

No branches or pull requests

1 participant