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

Remove memory leak in config_path_for_type #486

Merged
merged 1 commit into from
Mar 19, 2019

Conversation

msbit
Copy link
Contributor

@msbit msbit commented Mar 15, 2019

Replace repeated calls to xasprintf with calls to xstrappendf,
thus not repeatedly reallocating memory, only one instance of
which will be freed.

Signed-off-by: Tom Sullivan tom@msbit.com.au

Replace repeated calls to `xasprintf` with calls to `xstrappendf`,
thus not repeatedly reallocating memory, only one instance of
which will be freed.

Signed-off-by: Tom Sullivan <tom@msbit.com.au>
@GPaulovics
Copy link
Contributor

Nice catch, thank you.

@GPaulovics GPaulovics merged commit f1e088a into lastpass:master Mar 19, 2019
@msbit msbit deleted the config-path-for-type-mem-leak branch March 19, 2019 09:34
@msbit
Copy link
Contributor Author

msbit commented Mar 19, 2019

No problems; I figured that as I'd introduced the issue the least I could do would be to try and fix it :)

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.

2 participants