Skip to content

fixed possible memory leak while reallocating for bigger buffer size#19

Open
stolariks wants to merge 1 commit into
brenns10:masterfrom
stolariks:master
Open

fixed possible memory leak while reallocating for bigger buffer size#19
stolariks wants to merge 1 commit into
brenns10:masterfrom
stolariks:master

Conversation

@stolariks

Copy link
Copy Markdown

In case realloc() fails, you would lose the pointer to the memory, leaving it unable to be freed. That's why I added a temporary buffer just so it is possible to free the original memory.

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.

1 participant