esx: Fix memory leaks in error paths related to transferred ownership
Appending an item to a list transfers ownership of that item to the list owner. But an error can occur in between item allocation and appending it to the list. In this case the item has to be freed explicitly. This was not done in some special cases resulting in possible memory leaks. Reported by Coverity.
Showing
想要评论请 注册 或 登录