> If libxl_ctx_alloc() returns an error, we need to destroy the logger
> that we made.
>
> Restructure the Close() method such that it checks for each resource
> to be freed and then frees it.  This allows Close() to be come
> idempotent, as well as to be a useful clean-up to a partially-created
> context.
>
> Signed-off-by: George Dunlap <george.dun...@citrix.com>
Reviewed-by: Nick Rosbrook <rosbro...@ainfosec.com>

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

Reply via email to