mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-03 15:56:45 +00:00
coverity: #1425861
free allocated memory Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
parent
41784e4ee4
commit
f54f8d0b58
@ -771,8 +771,13 @@ static int set_config_net_ipv6_address(const char *key, const char *value,
|
||||
if (slash) {
|
||||
*slash = '\0';
|
||||
netmask = slash + 1;
|
||||
if (lxc_safe_uint(netmask, &inet6dev->prefix) < 0)
|
||||
ret = lxc_safe_uint(netmask, &inet6dev->prefix);
|
||||
if (ret < 0) {
|
||||
free(list);
|
||||
free(inet6dev);
|
||||
free(valdup);
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
ret = inet_pton(AF_INET6, valdup, &inet6dev->addr);
|
||||
|
Loading…
Reference in New Issue
Block a user