Skip to content

Commit

Permalink
Fix coverity issues (netdata#16873)
Browse files Browse the repository at this point in the history
  • Loading branch information
stelfrag authored Jan 30, 2024
1 parent 2fe3a6c commit 5124aef
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions collectors/plugins.d/local-sockets.h
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,7 @@ static inline bool local_sockets_find_all_sockets_in_proc(LS_STATE *ls, const ch
pid_t pid = (pid_t)strtoul(proc_entry->d_name, NULL, 10);
if(!pid) {
local_sockets_log(ls, "cannot parse pid of '%s'", proc_entry->d_name);
closedir(fd_dir);
continue;
}
net_ns_inode = 0;
Expand Down Expand Up @@ -746,6 +747,7 @@ static inline bool local_sockets_get_namespace_sockets(LS_STATE *ls, struct pid_
int pipefd[2];
if (pipe(pipefd) != 0) {
local_sockets_log(ls, "cannot create pipe");
close(fd);
return false;
}

Expand Down

0 comments on commit 5124aef

Please sign in to comment.