Skip to content

fix several memory leaks and undefined behaviors#55

Open
hades wants to merge 3 commits into
gkdr:devfrom
hades:memoryleaks
Open

fix several memory leaks and undefined behaviors#55
hades wants to merge 3 commits into
gkdr:devfrom
hades:memoryleaks

Conversation

@hades

@hades hades commented Oct 16, 2023

Copy link
Copy Markdown

Fixes #51, fixes #52

hades added 3 commits October 16, 2023 14:52
Calling strncmp with a null pointer is undefined behaviour in the standard
library. Therefore we check first if the type of the node is MXML_ELEMENT and
only then call mxmlGetElement and compare it to the expected node name.
@Neustradamus

Copy link
Copy Markdown
Contributor

@gkdr: Have you seen this PR?

@Neustradamus

Copy link
Copy Markdown
Contributor

@gkdr: Any news on it?

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

Successfully merging this pull request may close these issues.

memory leaks in test_storage memory leaks in test_libomemo

2 participants