mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-06 23:40:16 +01:00
systemd: fix memleak in dhcp6_lease_set_domains
https://github.com/systemd/systemd/pull/5113
0b75a95ace
This commit is contained in:
parent
11bc3f191e
commit
7cd2dfabec
1 changed files with 1 additions and 1 deletions
|
|
@ -228,7 +228,7 @@ int dhcp6_lease_set_domains(sd_dhcp6_lease *lease, uint8_t *optval,
|
|||
if (r < 0)
|
||||
return 0;
|
||||
|
||||
free(lease->domains);
|
||||
strv_free(lease->domains);
|
||||
lease->domains = domains;
|
||||
lease->domains_count = r;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue