From bc73df4e473516f25ce2f4b38b8a478f270de3ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= Date: Fri, 1 Apr 2016 22:54:51 +0200 Subject: [PATCH] coverity: avoid use after free MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Fabiano FidĂȘncio Acked-by: Victor Toso --- common/canvas_utils.c | 1 + 1 file changed, 1 insertion(+) diff --git a/common/canvas_utils.c b/common/canvas_utils.c index c5813f4..0be761a 100644 --- a/common/canvas_utils.c +++ b/common/canvas_utils.c @@ -109,6 +109,7 @@ static inline pixman_image_t *__surface_create_stride(pixman_format_code_t forma if (surface == NULL) { free(data); + data = NULL; spice_error("create surface failed, out of memory"); }