mirror of https://gitee.com/openkylin/libvirt.git
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…
Reference in New Issue