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

Fix PE resource memory leak due to missing virtual destructor. #984

Merged
merged 1 commit into from
Jul 16, 2021

Conversation

HoundThe
Copy link
Member

@HoundThe HoundThe commented Jul 9, 2021

Fixes #951

Add virtual destructor for Resource class so the deletion of classes that inherit from Resource, when hidden behind pointer to the parent class, can be correctly freed.

@PeterMatula PeterMatula self-requested a review July 16, 2021 10:04
@PeterMatula PeterMatula merged commit c9fa7b0 into avast:master Jul 16, 2021
PeterMatula added a commit that referenced this pull request Jul 16, 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.

Memory leak at FileInfo (v4.0) when analyze an executable file
2 participants