-
Notifications
You must be signed in to change notification settings - Fork 8
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 recursive object inserts. #17
Labels
Comments
Could you perhaps provide a reproducable script? Thanks. |
|
Ah, this is a known memory leak, the simplest reproduction of which is: var x = {}; x.x = x; |
I'm going to change the title and leave this open. |
pcmacdon
changed the title
Memory leak in Jsi_Realloc
Memory leak in recursive object inserts.
Oct 13, 2020
This was referenced Oct 22, 2020
This was referenced Oct 31, 2020
This also leaks when using "var x = Object", |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
When the Jsi_Realloc function of jsiUtils.c uses realloc to expand the memory of a dynamic array, if the requested size is larger than the original size, the new memory from realloc will not be initialized (cleared), causing memory leaks.
Debug Information
The text was updated successfully, but these errors were encountered: