[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH 12/13] libxl: don't leak buf in libxl_xen_console_read_start error handling
Coverity-ID: 1055889 Signed-off-by: Matthew Daley <mattd@xxxxxxxxxxx> --- tools/libxl/libxl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/libxl/libxl.c b/tools/libxl/libxl.c index 41b8f60..4cd54a8 100644 --- a/tools/libxl/libxl.c +++ b/tools/libxl/libxl.c @@ -5116,6 +5116,7 @@ libxl_xen_console_reader * cr = malloc(sizeof(libxl_xen_console_reader)); if (!cr) { LIBXL__LOG_ERRNO(ctx, LIBXL__LOG_ERROR, "cannot malloc libxl_xen_console_reader"); + free(buf); return NULL; } -- 1.7.10.4 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |