mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-27 19:11:16 +00:00
nwfilter: Fix memory leak in learnIPAddressThread
Don't leak @inetaddr within the done: processing when attempting to instantiate the filter. Signed-off-by: ZhiPeng Lu <lu.zhipeng@zte.com.cn>
This commit is contained in:
parent
7e20862576
commit
d957e23663
@ -637,6 +637,7 @@ learnIPAddressThread(void *arg)
|
|||||||
req->filterparams);
|
req->filterparams);
|
||||||
VIR_DEBUG("Result from applying firewall rules on "
|
VIR_DEBUG("Result from applying firewall rules on "
|
||||||
"%s with IP addr %s : %d", req->ifname, inetaddr, ret);
|
"%s with IP addr %s : %d", req->ifname, inetaddr, ret);
|
||||||
|
VIR_FREE(inetaddr);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (showError)
|
if (showError)
|
||||||
|
Loading…
Reference in New Issue
Block a user