Commit c4e9c69f by Serge Hallyn

coverity: free gw when not used

parent 452c9141
...@@ -765,6 +765,7 @@ static int config_network_ipv4_gateway(const char *key, const char *value, ...@@ -765,6 +765,7 @@ static int config_network_ipv4_gateway(const char *key, const char *value,
} }
if (!strcmp(value, "auto")) { if (!strcmp(value, "auto")) {
free(gw);
netdev->ipv4_gateway = NULL; netdev->ipv4_gateway = NULL;
netdev->ipv4_gateway_auto = true; netdev->ipv4_gateway_auto = true;
} else { } else {
......
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