mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-02-12 21:57:27 +03:00
service: use newdup() where appropriate
This commit is contained in:
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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user