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

linux_hal_common: the resources (sd_*) not freed (SCA _002/_003/_017 #38/#39/#51) #58

Merged

Conversation

PawelModrzejewski
Copy link
Contributor

@PawelModrzejewski PawelModrzejewski commented Dec 8, 2020

Static code analysis fixes _002 _003 _017 (Issues #38 #39 #51)

Added sd_general and sd_event initalization in LinuxNetworkInterface() constructor; now sockets can be properly closed in relevant destructor code, which was not called at all in case of failures.
ifname initialization moved up (net_lock.init() down) to solve compilation error ("jump to label 'exit_error' crosses initialization of 'InterfaceName* ifname")

@PawelModrzejewski PawelModrzejewski changed the title linux_hal_common: the resources (sd_*) not freed (SCA _003/_004 #38/#39) linux_hal_common: the resources (sd_*) not freed (SCA _002/_003 #38/#39) Dec 8, 2020
@PawelModrzejewski
Copy link
Contributor Author

Please review/comment.

…vnu#38/Avnu#39/Avnu#51)

Static code analysis fix _002 _003 _017 (Issues Avnu#38 Avnu#39 Avnu#51)

Added sd_general and sd_event initalization in LinuxNetworkInterface()
constructor; now sockets can be properly closed in relevant destructor code,
which was not called at all in case of failures.
ifname initialization moved up to solve compilation error ("jump to label 'exit_error'
crosses initialization of 'InterfaceName* ifname")
@PawelModrzejewski PawelModrzejewski changed the title linux_hal_common: the resources (sd_*) not freed (SCA _002/_003 #38/#39) linux_hal_common: the resources (sd_*) not freed (SCA _002/_003/_017 #38/#39/#51) Dec 15, 2020
@avinash-palleti avinash-palleti merged commit ad50785 into Avnu:master Dec 16, 2020
@PawelModrzejewski PawelModrzejewski deleted the issue_38_39_sockets_not_freed branch December 17, 2020 11:34
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.

2 participants