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

inconsistent strdup and delete[] #5

Open
haase opened this issue Dec 9, 2018 · 0 comments
Open

inconsistent strdup and delete[] #5

haase opened this issue Dec 9, 2018 · 0 comments

Comments

@haase
Copy link

haase commented Dec 9, 2018

When running under ASAN I get a complaint that strings allocated by strdup() are being freed by delete[] which is apparently a no-no. I don't know enough about C++ object reclamation to fix it myself. Most of the recommendations on the interwebs seem to be to use C++ string types rather than character arrays, but I imagine that could lead to a performance hit.

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

1 participant