1
0
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:
ZhiPeng Lu 2017-09-27 09:01:39 +08:00 committed by John Ferlan
parent 7e20862576
commit d957e23663

View File

@ -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)