mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 21:34:54 +03: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);
|
||||
VIR_DEBUG("Result from applying firewall rules on "
|
||||
"%s with IP addr %s : %d", req->ifname, inetaddr, ret);
|
||||
VIR_FREE(inetaddr);
|
||||
}
|
||||
} else {
|
||||
if (showError)
|
||||
|
Loading…
Reference in New Issue
Block a user