Skip to content

Fix memory leaks #337

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Fix memory leaks #337

wants to merge 2 commits into from

Conversation

0x41rtur
Copy link

No description provided.

@stephenmathieson
Copy link
Member

Thanks for the patch! Unfortunately tests are failing. Can you please look into that?

Comment on lines 393 to 394
if (error && pkg)
clib_package_free(pkg);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should add this to the existing if (error) block:

if (error) {
  if (pkg) {
    clib_package_free(pkg);
    pkg = NULL;
  }
}

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix

@0x41rtur
Copy link
Author

Thanks for the patch! Unfortunately tests are failing. Can you please look into that?

fix

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