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 leak #36

Open
wants to merge 2 commits into
base: features/cictec-fixes
Choose a base branch
from

Conversation

daltomi
Copy link

@daltomi daltomi commented Sep 3, 2022

Hi all.

The main commit is: 8e58e3e (Fix memory leak)

Then I realized that smodes is a temporary variable, so I decided that it shouldn't be static: 296d010

Greetings.

The 'smodes' variable is temporary so instead of being static it uses allocated memory.

Note that the 'smodes' variable must be null-terminated.
@MikeDX
Copy link
Collaborator

MikeDX commented Sep 3, 2022

Looks great! Thank you

@MikeDX
Copy link
Collaborator

MikeDX commented Sep 3, 2022

I think this could and should go into the main branch, rather than @CicTec branch. I really should look into this project again and do some maintenance

@daltomi
Copy link
Author

daltomi commented Sep 3, 2022

I really should look into this project again and do some maintenance

That would be a great help for those of us who are just beginning to participate, thank you!.

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.

None yet

2 participants