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 07:31:08 -04:00
committed by John Ferlan
parent 7e20862576
commit d957e23663
+1
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)