-
-
Notifications
You must be signed in to change notification settings - Fork 352
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
Minor memory fix #550
Minor memory fix #550
Conversation
This reverts commit 1ab0a50.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Take a fix from the bitcoin code instead
https://github.com/bitcoin/bitcoin/blob/master/src/httprpc.cpp#L114
They have a |
Look carefully at their code
static is only for size (rightfully so though I'd prefer constexpr). Buffer is not static |
PR intention
Fixes a minor memory leak.