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

Static code analysis _004 (The resource was not freed) #40

Open
PawelModrzejewski opened this issue Dec 2, 2020 · 0 comments
Open

Static code analysis _004 (The resource was not freed) #40

PawelModrzejewski opened this issue Dec 2, 2020 · 0 comments

Comments

@PawelModrzejewski
Copy link
Contributor

PawelModrzejewski commented Dec 2, 2020

Short summary (details in attached file):

Event 15:  _private has gone out of scope and no longer references the resource of interest.
There are no remaining references to the resource new () from linux_hal_common.cpp:802.

The resource was allocated at linux_hal_common.cpp:802.
The last reference was lost at daemon_cl.cpp:122.
The resource was not freed.

gptp_004.txt

PawelModrzejewski added a commit to PawelModrzejewski/gptp that referenced this issue Jan 19, 2021
Static code analysis fix (preparation) _004 (Issue Avnu#40)

Make SystemdWatchdogHandler object to be created in main() for proper cleanup during exit.
watchodg_setup() changed to a public member of SystemdWatchdogHandler class.
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

No branches or pull requests

1 participant