From bd8dc0a255d079e6f977f0dc5b0a0b7045c18676 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ra=C3=BAl=20Pe=C3=B1acoba?= Date: Wed, 29 Mar 2017 18:13:36 +0200 Subject: [PATCH] ivi-layout: Add missing free() in ivi_view_create MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Raúl Peñacoba Reviewed-by: Emre Ucan Reviewed-by: Quentin Glidic --- ivi-shell/ivi-layout.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ivi-shell/ivi-layout.c b/ivi-shell/ivi-layout.c index 64e4ead8..298e18ea 100644 --- a/ivi-shell/ivi-layout.c +++ b/ivi-shell/ivi-layout.c @@ -173,6 +173,7 @@ ivi_view_create(struct ivi_layout_layer *ivilayer, ivi_view->view = weston_view_create(ivisurf->surface); if (ivi_view->view == NULL) { weston_log("fails to allocate memory\n"); + free(ivi_view); return NULL; }