mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00: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,
|
def->name,
|
||||||
startip ? startip : "unknown",
|
startip ? startip : "unknown",
|
||||||
endip ? endip : "unknown");
|
endip ? endip : "unknown");
|
||||||
|
VIR_FREE(startip);
|
||||||
|
VIR_FREE(endip);
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user