Skip to content

Fix memory leaks#337

Closed
0x41rtur wants to merge 2 commits intoclibs:masterfrom
0x41rtur:fix_leaks
Closed

Fix memory leaks#337
0x41rtur wants to merge 2 commits intoclibs:masterfrom
0x41rtur:fix_leaks

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

@0x41rtur 0x41rtur closed this by deleting the head repository Jun 24, 2025
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