mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-09 20:58:33 +03:00
network_conf: Resolve Coverity RESOURCE_LEAK
Need to VIR_FREE the startip/endip we allocated for the error message
This commit is contained in:
parent
2f7ced36e6
commit
0cec79b91b
@ -3627,6 +3627,8 @@ virNetworkDefUpdateIPDHCPRange(virNetworkDefPtr def,
|
||||
def->name,
|
||||
startip ? startip : "unknown",
|
||||
endip ? endip : "unknown");
|
||||
VIR_FREE(startip);
|
||||
VIR_FREE(endip);
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user