1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-02 02:21:44 +03:00

sd-resolve: use close_many() (#3643)

This commit is contained in:
0xAX 2016-07-02 18:17:26 +03:00 committed by Lennart Poettering
parent 563a69f480
commit 3a1707fff1

View File

@ -585,9 +585,7 @@ static void resolve_free(sd_resolve *resolve) {
(void) pthread_join(resolve->workers[i], NULL);
/* Close all communication channels */
for (i = 0; i < _FD_MAX; i++)
safe_close(resolve->fds[i]);
close_many(resolve->fds, _FD_MAX);
free(resolve);
}