From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthew Daley Subject: [PATCH 12/13] libxl: don't leak buf in libxl_xen_console_read_start error handling Date: Sun, 1 Dec 2013 23:15:06 +1300 Message-ID: <1385892907-20084-13-git-send-email-mattd@bugfuzz.com> References: <1385892907-20084-1-git-send-email-mattd@bugfuzz.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1385892907-20084-1-git-send-email-mattd@bugfuzz.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xen.org Cc: Matthew Daley , Ian Jackson , Ian Campbell , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org Coverity-ID: 1055889 Signed-off-by: Matthew Daley --- 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