mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-20 14:03:39 +03:00
netword: minor memory leak fix
This commit is contained in:
parent
2bce2acce8
commit
02affb4e6a
@ -680,13 +680,13 @@ void ndisc_vacuum(Link *link) {
|
||||
|
||||
SET_FOREACH(r, link->ndisc_rdnss, i)
|
||||
if (r->valid_until < time_now) {
|
||||
(void) set_remove(link->ndisc_rdnss, r);
|
||||
free(set_remove(link->ndisc_rdnss, r));
|
||||
link_dirty(link);
|
||||
}
|
||||
|
||||
SET_FOREACH(d, link->ndisc_dnssl, i)
|
||||
if (d->valid_until < time_now) {
|
||||
(void) set_remove(link->ndisc_dnssl, d);
|
||||
free(set_remove(link->ndisc_dnssl, d));
|
||||
link_dirty(link);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user