mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-07-13 03:45:30 +00:00
coverity: free gw when not used
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
This commit is contained in:
parent
452c91416b
commit
c4e9c69f51
@ -765,6 +765,7 @@ static int config_network_ipv4_gateway(const char *key, const char *value,
|
||||
}
|
||||
|
||||
if (!strcmp(value, "auto")) {
|
||||
free(gw);
|
||||
netdev->ipv4_gateway = NULL;
|
||||
netdev->ipv4_gateway_auto = true;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user