mirror of
https://github.com/libvirt/libvirt.git
synced 2026-09-03 20:53:04 -05: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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user