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

Member names 'malloc' and 'free' conflict with memory utilities. #36

Open
sduensin opened this issue Nov 23, 2021 · 0 comments
Open

Member names 'malloc' and 'free' conflict with memory utilities. #36

sduensin opened this issue Nov 23, 2021 · 0 comments

Comments

@sduensin
Copy link

When trying to use enet with various memory leak tools, they break enet when redefining 'malloc' and 'free'. Replacing the definitions in ENetCallBacks with 'emalloc' and 'efree' (and related locations in the code) fixes it.

(Specifically, MemWatch: http://www.linkdata.se/sourcecode/memwatch/ )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants