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:
parent
563a69f480
commit
3a1707fff1
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user