Unverified Commit 9b7f09d1 by Christian Brauner Committed by GitHub

Merge pull request #2388 from 2xsec/coverity

coverity: #1425811
parents 7e0997c7 aa7c5841
......@@ -628,8 +628,12 @@ static int set_config_net_ipv4_address(const char *key, const char *value,
/* No prefix specified, determine it from the network class. */
if (prefix) {
ret = lxc_safe_uint(prefix, &inetdev->prefix);
if (ret < 0)
if (ret < 0) {
free(inetdev);
free(list);
free(addr);
return -1;
}
} else {
inetdev->prefix = config_ip_prefix(&inetdev->addr);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment