0
0
Fork 0
mirror of https://github.com/netdata/netdata.git synced 2025-04-14 17:48:37 +00:00

Fix coverity issues ()

This commit is contained in:
Stelios Fragkakis 2024-01-30 10:46:01 +02:00 committed by GitHub
parent 2fe3a6c21b
commit 5124aefc2b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;
@ -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;
}