Skip to content
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

Potential memory leak through scan-build #108

Closed
agauniyal opened this issue Dec 10, 2017 · 1 comment
Closed

Potential memory leak through scan-build #108

agauniyal opened this issue Dec 10, 2017 · 1 comment

Comments

@agauniyal
Copy link

doctest.h:682:77: warning: Potential memory leak
    void setOnHeap() { *reinterpret_cast<unsigned char*>(&buf[last]) = 128; }

could be false positive.

@onqtam
Copy link
Member

onqtam commented Dec 11, 2017

So this is a static analyzer warning? I don't think there is a bug there...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants