-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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 detection with basic usage of NLOHMANN_JSON_SERIALIZE_ENUM #3939
Comments
I would recommend using |
0 bytes in 0 Free Blocks. |
That looks to me like it's from the testing infrastructure. If you remove the |
Ah, it's probably from the static storage inside those functions that gets initialized on the first use:
If that's the case, then this will also result in the exact same 108 byte leak:
and this will result in no leak:
So this is only a "leak" because the static variables are initialized after the |
Thank you. |
Description
The basic usage of NLOHMANN_JSON_SERIALIZE_ENUM seems to return an error with _CrtMemCheckpoint Microsoft tool.
Reproduction steps
A basic google test return "Memory leak of 108 byte(s) detected" with the code provided as example.
Expected vs. actual results
Expected no memory leaks vs 108 byte(s).
Minimal code example
Error messages
No response
Compiler and operating system
Microsoft Visual C++ 2019 (Win32), Window10
Library version
v3.11.2
Validation
develop
branch is used.The text was updated successfully, but these errors were encountered: