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

fix memory leaks #256

Closed

Conversation

rigomate
Copy link

There were 3 memory leaks, which were caught by the tool: infer

1 was an exit path before the free.
The other is a rather ugly construct, but is necessary so the variable named string can be freed.

It must be mentioned though, that some more tweaking should be done, as osAllocMem could actually fail (unlikely, but not unheard). Return values of allocations are nowhere really handled, so this PR just addresses the obvious memory leaking.

SciLor and others added 8 commits October 26, 2024 19:55
…erse-engineering/develop

Next Version (hotfix)
…ch-1

Allow compilation on FreeBSD and maybe other UNIX systems
…erse-engineering/revert-238-patch-1

Revert "Allow compilation on FreeBSD and maybe other UNIX systems"
@rigomate
Copy link
Author

There were 2 more leaks which were caught with clang-tidy: clang-analyzer-unix.Malloc

@SciLor
Copy link
Contributor

SciLor commented Nov 17, 2024

Please target the develop branch, as the master contains the current stable version.

@rigomate rigomate changed the base branch from master to develop November 17, 2024 19:00
@rigomate rigomate closed this Nov 17, 2024
@rigomate rigomate mentioned this pull request Nov 17, 2024
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.

3 participants