mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 08:25:20 +09:00
service: use newdup() where appropriate
This commit is contained in:
committed by
Yu Watanabe
parent
78ebf8bfb6
commit
aa7c4dd66e
@@ -1407,10 +1407,9 @@ static int service_collect_fds(
|
||||
|
||||
/* Pass the per-connection socket */
|
||||
|
||||
rfds = new(int, 1);
|
||||
rfds = newdup(int, &s->socket_fd, 1);
|
||||
if (!rfds)
|
||||
return -ENOMEM;
|
||||
rfds[0] = s->socket_fd;
|
||||
|
||||
rfd_names = strv_new("connection");
|
||||
if (!rfd_names)
|
||||
|
||||
Reference in New Issue
Block a user