[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH 3/4] libxenstat: always free qmp_stats
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.jackson@xxxxxxxxxxxxx> 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@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |