mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-05 05:18:23 +02:00
systemd: fix memleak in dhcp6_option_parse_domainname
https://github.com/systemd/systemd/pull/5114419eaa8f8d(cherry picked from commitc2d0b9eec0) (cherry picked from commit3a4c9676da)
This commit is contained in:
parent
d8cc0609f1
commit
2caf3b1f04
1 changed files with 1 additions and 1 deletions
|
|
@ -341,7 +341,7 @@ int dhcp6_option_parse_ip6addrs(uint8_t *optval, uint16_t optlen,
|
|||
|
||||
int dhcp6_option_parse_domainname(const uint8_t *optval, uint16_t optlen, char ***str_arr) {
|
||||
size_t pos = 0, idx = 0;
|
||||
_cleanup_free_ char **names = NULL;
|
||||
_cleanup_strv_free_ char **names = NULL;
|
||||
int r;
|
||||
|
||||
assert_return(optlen > 1, -ENODATA);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue