1
1
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:
Lennart Poettering 2023-04-04 16:25:33 +02:00 committed by Yu Watanabe
parent 78ebf8bfb6
commit aa7c4dd66e

View File

@ -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)