systemd: fix memleak in dhcp6_lease_set_domains

https://github.com/systemd/systemd/pull/5113
0b75a95ace
(cherry picked from commit 7cd2dfabec)
This commit is contained in:
Thomas Haller 2017-02-06 13:42:11 +01:00
parent 4f58ff5d37
commit d1fb96207e

View file

@ -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;