diff options
author | Thomas Haller <thaller@redhat.com> | 2017-02-06 13:43:52 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2017-02-06 13:44:45 +0100 |
commit | c2d0b9eec0873cfac42f861639e955432ec8d5d0 (patch) | |
tree | 9680ab33874c453c706d42cfb67cfb07026734ba /src/systemd | |
parent | 7cd2dfabec83e8903d6a001d750844d2b4b715f7 (diff) | |
download | NetworkManager-c2d0b9eec0873cfac42f861639e955432ec8d5d0.tar.gz |
systemd: fix memleak in dhcp6_option_parse_domainname
https://github.com/systemd/systemd/pull/5114
https://github.com/systemd/systemd/commit/419eaa8f8d2025bae98c23bdedb434d6dbb025b8
Diffstat (limited to 'src/systemd')
-rw-r--r-- | src/systemd/src/libsystemd-network/dhcp6-option.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/systemd/src/libsystemd-network/dhcp6-option.c b/src/systemd/src/libsystemd-network/dhcp6-option.c index ee63142cfa..3a77e34d57 100644 --- a/src/systemd/src/libsystemd-network/dhcp6-option.c +++ b/src/systemd/src/libsystemd-network/dhcp6-option.c @@ -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); |