Skip to content

fix: Typo in store.c / GetTable leading to e.g. a memory leak#810

Open
JiwaniZakir wants to merge 1 commit intoform-dev:masterfrom
JiwaniZakir:fix/issue-808
Open

fix: Typo in store.c / GetTable leading to e.g. a memory leak#810
JiwaniZakir wants to merge 1 commit intoform-dev:masterfrom
JiwaniZakir:fix/issue-808

Conversation

@JiwaniZakir
Copy link

Fixes #808

In GetTable (sources/store.c), a buffer reallocation for AS.Olduflags incorrectly assigned the new buffer to AS.Oldvflags, leaving AS.Olduflags pointing to freed memory and leaking the new allocation. The root cause was a copy-paste or typo error on the assignment line following the M_free call. Corrects the assignment to AS.Olduflags = buffer in sources/store.c:3210, ensuring the reallocated buffer is properly tracked. Verified by code inspection confirming the surrounding reallocation pattern for AS.NumOldNumFactors and AS.Olduflags is now self-consistent.

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.

Typo in store.c / GetTable leading to e.g. a memory leak

1 participant