Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # 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...

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

No branches or pull requests

2 participants