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

xdo_new to xdo_free leaks #189

Open
luxe opened this issue Oct 1, 2017 · 4 comments
Open

xdo_new to xdo_free leaks #189

luxe opened this issue Oct 1, 2017 · 4 comments

Comments

@luxe
Copy link
Contributor

luxe commented Oct 1, 2017

extern "C" {
#include <xdo.h>
}

int main(){
    xdo_t *xdo = xdo_new(NULL);
    xdo_free(xdo);
}
==14950==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 72 byte(s) in 1 object(s) allocated from:
    #0 0x7fb13b18d130 in calloc (/usr/lib/x86_64-linux-gnu/libasan.so.3+0xc7130)
    #1 0x7fb1381338a0 in XkbGetMap (/usr/lib/x86_64-linux-gnu/libX11.so.6+0x8d8a0)

SUMMARY: AddressSanitizer: 72 byte(s) leaked in 1 allocation(s).

Seriously?

@luxe
Copy link
Contributor Author

luxe commented Oct 1, 2017

#190
fixes my leak. I dunno if its a valid or not.
stolen from:
kupferlauncher/keybinder@d9f0a1f

@frobware
Copy link
Contributor

Fixed by PR #242

@lucasturci
Copy link

Was the fix abandoned?

@frobware
Copy link
Contributor

Was the fix abandoned?

I closed my PR due to lack of interest: #242 (comment)

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 a pull request may close this issue.

3 participants