Skip to content

[Memory leak] Windows LoadLibrary with dll linked with OpenBlas #1152

Closed
@m3rik

Description

@m3rik

Hello,

I used openblas in a c++ plugin that is loaded using LoadLibrary in Windows. The problem is that if I load and unload the library for a thousand times, there are at least 100 MB of memory leak.

I built a small project for demo purposes.

LinkedBlas.dll - linked with OpenBlas (prebuilt binaries from sourceforge or nuget package)
TestOpenblas.exe - loads linkedblas.dll and frees the library without using anything from it.

The memory leak is present on both architectures x86 and x64.
Is there a problem that I load a library built with mingw in mcvs?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions