Skip to content

fix: when free argement is 2, properly releasing memory#239

Merged
Kyle-Kyle merged 1 commit into
shellphish:masterfrom
storm-1614:master
May 15, 2026
Merged

fix: when free argement is 2, properly releasing memory#239
Kyle-Kyle merged 1 commit into
shellphish:masterfrom
storm-1614:master

Conversation

@storm-1614
Copy link
Copy Markdown
Contributor

In malloc_playground, the free command appeared ineffective because ptrArray[tmpArg] was being set to zero before the actual free call. This prevented pwndbg from correctly reflecting the freed state in heap. The fix ensures the pointer is preserved when invoking free.

@Kyle-Kyle
Copy link
Copy Markdown
Contributor

thanks for pointing it out!

@Kyle-Kyle Kyle-Kyle merged commit 02da6aa into shellphish:master May 15, 2026
16 checks passed
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.

2 participants