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

Registration ID memory leak ? #624

Open
fdur opened this issue Sep 23, 2021 · 1 comment
Open

Registration ID memory leak ? #624

fdur opened this issue Sep 23, 2021 · 1 comment
Labels

Comments

@fdur
Copy link
Contributor

fdur commented Sep 23, 2021

Hi,
When a registration is made, a registration ID is stored in location
Function: prv_handleRegistrationReply
This location is not freed in prv_handleDeregistrationReply
Memory leak ?
Thanks

@fdur fdur changed the title Registration ID memory leak Registration ID memory leak ? Sep 23, 2021
@rettichschnidi
Copy link
Contributor

Sorry for the late answer.

Without looking at the specific code: You are most likely right. There are many memory leaks.

To simplify finding/verifying such issues, build it like this:

mkdir build-wakaama && cd build-wakaama
cmake ../ -DCMAKE_C_FLAGS="-fsanitize=leak" -DCMAKE_EXE_LINKER_FLAGS="-fsanitize=leak" -DCMAKE_BUILD_TYPE=Debug
make

When running any binary, it will show you found memory leaks when it exits.

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

No branches or pull requests

3 participants