-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Memory leak in OpenSSL relocation patch #11552
Comments
thanks I guess the easiest fix is to make it static and only relocate and leak once. |
lazka
added a commit
to lazka/MINGW-packages
that referenced
this issue
Apr 24, 2022
…times Instead of relocating every time the getters are called, relocate only on the first call for each path. Fixes msys2#11552
See #11555 |
lazka
added a commit
to lazka/MINGW-packages
that referenced
this issue
May 6, 2022
…times Instead of relocating every time the getters are called, relocate only on the first call for each path. Fixes msys2#11552
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I found a memory leak in MINGW's OpenSSL.
It causes every time just only calling
X509_STORE_set_default_paths()
.Here is the sample code:
And here is the analyzed log by Dr. Memory:
It seems that it's caused by the MINGW's patch:
MINGW-packages/mingw-w64-openssl/openssl-1.1.1-relocation.patch
Lines 72 to 85 in e7beb4e
MINGW-packages/mingw-w64-openssl/openssl-1.1.1-relocation.patch
Lines 98 to 108 in e7beb4e
I think these default paths should be stored in static variables and shouldn't be reallocated.
See also: fluent/fluent-package-builder#374
The text was updated successfully, but these errors were encountered: