]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/libsystemd-network/dhcp6-option.c
sd-network: fix memleak in dhcp6_option_parse_domainname (#5114)
[thirdparty/systemd.git] / src / libsystemd-network / dhcp6-option.c
index 5462e03476e8c15abd0ecefa695b7228c97b645e..f8056dbc4b7e30f751690d60ed8d9e5d0851a782 100644 (file)
@@ -339,7 +339,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);