From 3c83d52e2c38af81b45b925d8e8d60b38444b698 Mon Sep 17 00:00:00 2001 From: Changyeon Lee Date: Mon, 25 Apr 2016 13:11:36 +0900 Subject: [PATCH] Fix error handling in surface create Change-Id: I94fa2fbc7f64331436e6e0069d99da7e3616d46e Signed-off-by: Changyeon Lee --- src/tbm_surface_internal.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tbm_surface_internal.c b/src/tbm_surface_internal.c index 796add8..6aa6c31 100644 --- a/src/tbm_surface_internal.c +++ b/src/tbm_surface_internal.c @@ -585,6 +585,7 @@ tbm_surface_internal_create_with_flags(int width, int height, getpid(), __func__, __LINE__); free(bo); pthread_mutex_unlock(&surf->bufmgr->lock); + goto alloc_fail; } bo->ref_cnt = 1; -- 2.34.1