提交 d957e236 编写于 作者: Z ZhiPeng Lu 提交者: John Ferlan

nwfilter: Fix memory leak in learnIPAddressThread

Don't leak @inetaddr within the done: processing when attempting
to instantiate the filter.
Signed-off-by: NZhiPeng Lu <lu.zhipeng@zte.com.cn>
上级 7e208625
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册