Skip to content

Conversation

@jukkar
Copy link
Member

@jukkar jukkar commented Feb 28, 2019

If bind() fails or TX thread cannot start, then cleanup the
socket by calling close()

Coverity-CID: 191003
Fixes #13824

Signed-off-by: Jukka Rissanen jukka.rissanen@linux.intel.com

If bind() fails or TX thread cannot start, then cleanup the
socket by calling close()

Coverity-CID: 191003
Fixes zephyrproject-rtos#13824

Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
@jukkar jukkar added area: Networking Coverity A Coverity detected issue or its fix labels Feb 28, 2019
@jukkar jukkar added this to the v1.14.0 milestone Feb 28, 2019
@codecov-io
Copy link

Codecov Report

Merging #13927 into master will increase coverage by <.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #13927      +/-   ##
==========================================
+ Coverage   52.25%   52.25%   +<.01%     
==========================================
  Files         307      307              
  Lines       45429    45429              
  Branches    10506    10506              
==========================================
+ Hits        23739    23740       +1     
  Misses      16899    16899              
+ Partials     4791     4790       -1
Impacted Files Coverage Δ
arch/posix/core/posix_core.c 91.91% <0%> (+1.01%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9c2c115...2eaaf52. Read the comment docs.

@galak galak merged commit 2db03ce into zephyrproject-rtos:master Feb 28, 2019
@jukkar jukkar deleted the bug-13824-socket-can-res-leak branch March 9, 2019 19:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: Networking Coverity A Coverity detected issue or its fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Coverity CID :191003]Resource leaks in /samples/net/sockets/can/src/main.c

5 participants