mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-31 00:50:12 +01:00
systemd: fix memleak in dhcp6_lease_set_domains
https://github.com/systemd/systemd/pull/51130b75a95ace(cherry picked from commit7cd2dfabec)
This commit is contained in:
parent
4f58ff5d37
commit
d1fb96207e
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