-
Notifications
You must be signed in to change notification settings - Fork 254
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
cleanup strdup nonsense using new opt pattern #179
Comments
Remove the use of strdup and associated frees and use the opt pattern. Signed-off-by: Nick Campbell <nicholas.j.campbell@gmail.com>
The only other place I found reference to strdup was in libxmljs.cc:80 using xmlMemoryStrdup. This isn't going to be replaced this way, and we probably don't want to change this as it is likely fundamental to libxml. :) Anyway, the above commit should cover it. |
LGTM. If all tests pass merge it in! |
I've run the tests and while they fail, they are failing with a segfault in the ref_integrity tests. I took out the failing test and all is well so the code itself is good. I'll leave it in master (I'm not going to take out the failing test). |
Sounds good
|
Remove the use of strdup and associated frees and use the opt pattern. Signed-off-by: Nick Campbell <nicholas.j.campbell@gmail.com>
Avoid strdup where possible by just capturing the Handle value. We cannot simple capture the Utf8Value as there is no empty constructor.
Example of capturing handles and getting strings or NULL.
The text was updated successfully, but these errors were encountered: