Skip to content

Add missing dlclose on error#47487

Merged
vitek-karas merged 1 commit intodotnet:masterfrom
omajid:installer-host-pal-missing-dlclose
Feb 4, 2021
Merged

Add missing dlclose on error#47487
vitek-karas merged 1 commit intodotnet:masterfrom
omajid:installer-host-pal-missing-dlclose

Conversation

@omajid
Copy link
Member

@omajid omajid commented Jan 26, 2021

I think this is a resource leak, but I am not sure.

If the symbol is not found, close the library before returning false.

Otherwise, the library is not stored anywhere and never cleaned up.

If the symbol is not found, close the library before returning false.

Otherwise, the library is not stored anywhere and never cleaned up.
@ghost ghost added the area-Host label Jan 26, 2021
@ghost
Copy link

ghost commented Jan 26, 2021

Tagging subscribers to this area: @vitek-karas, @agocke
See info in area-owners.md if you want to be subscribed.

Issue Details

If the symbol is not found, close the library before returning false.

Otherwise, the library is not stored anywhere and never cleaned up.

Author: omajid
Assignees: -
Labels:

area-Host

Milestone: -

Copy link
Member

@vitek-karas vitek-karas left a comment

Choose a reason for hiding this comment

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

Thanks - good catch.

@vitek-karas vitek-karas merged commit 8033217 into dotnet:master Feb 4, 2021
@vitek-karas
Copy link
Member

@omajid - thanks a lot for the fix!

@ghost ghost locked as resolved and limited conversation to collaborators Mar 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants