Skip to content

Commit

Permalink
examples/lte_hibernation_wake_socket: Fix leak of closing socket desc…
Browse files Browse the repository at this point in the history
…riptor

Fix leak of closing socket descriptor.

Detected by CodeSonar 712248
  • Loading branch information
SPRESENSE committed Nov 29, 2024
1 parent edb3297 commit d127c3b
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ static int load_sock_context(FAR char *filename)
if (ret < 0)
{
printf("SIOCSETCONTEXT failed:%d\n", errno);
close(sockfd);
return -1;
}

Expand Down

0 comments on commit d127c3b

Please sign in to comment.