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

Memleak in serviceCommandIsValid ? #179

Open
tomaszrostanskithales opened this issue Aug 29, 2022 · 0 comments
Open

Memleak in serviceCommandIsValid ? #179

tomaszrostanskithales opened this issue Aug 29, 2022 · 0 comments

Comments

@tomaszrostanskithales
Copy link

tomaszrostanskithales commented Aug 29, 2022

Shouldn't the suffixedCommand variable that is allocated here:

suffixedCommand = os_malloc(strlen(*command) + sizeof(OS_EXESUFFIX));

be freed after use? - If I understand correctly the os_locate() calls os_strdup() to duplicate the given input if finds a match.

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

No branches or pull requests

1 participant