|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH 12/13 v2] libxl: don't leak buf in libxl_xen_console_read_start error handling
Matthew Daley writes ("[PATCH 12/13 v2] libxl: don't leak buf in
libxl_xen_console_read_start error handling"):
> Use libxl__zallocs instead of plain mallocs + memset.
>
> Coverity-ID: 1055889
> Signed-off-by: Matthew Daley <mattd@xxxxxxxxxxx>
Acked-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
Committed-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
> v2: Use libxl__zallocs instead of custom error handling. I'm not sure if this
> is what you had in mind, Ian, specifically the use of GC_INIT/GC_FREE and
> NOGC vs. just using &ctx->nogc_gc
Yes, this was exactly what I meant.
As a bonus it's now much shorter and also more obviously correct :-).
Thanks,
Ian.
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |