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

Improve lurch_util_axc_get_init_ctx() #161

Merged
merged 1 commit into from
Feb 9, 2021

Conversation

root-hardenedvault
Copy link
Contributor

Fix the misuse of free() on g_malloc()-ed memory, and it may
be good to output db_fn to error message.

Signed-off-by: HardenedVault [email protected]

Fix the misuse of free() on g_malloc()-ed memory, and it may
be good to output db_fn to error message.

Signed-off-by: HardenedVault <[email protected]>
@root-hardenedvault
Copy link
Contributor Author

You may declare a variable with type gchar* or gpointer to inform yourself that they are allocated from g_malloc() and should be released with g_free().

@gkdr
Copy link
Owner

gkdr commented Feb 9, 2021

that's a good idea. i will remember that in the future. and thanks for the fix, it looks good.

@gkdr gkdr merged commit 77a9460 into gkdr:dev Feb 9, 2021
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