Wei Liu writes ("[PATCH 3/4] libxenstat: always free qmp_stats"):
> Originally qmp_stats is only freed in failure path and leaked in success
> path.
> 
> Instead of wiring up the success path, rearrange the code a bit to
> always free qmp_stats before checking if info is NULL.

Acked-by: Ian Jackson <ian.jack...@eu.citrix.com>

Having said that, I am not a great fan of the error handling cleanup
style adopted in this code in general.  The ownership and lifetime of
the various allocated objects has to be inferred by reading the code
in detail.

Ian.

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

Reply via email to