Fix error handling in surface create 64/67064/1 accepted/tizen/common/20160427.053635 accepted/tizen/ivi/20160426.233906 accepted/tizen/mobile/20160426.233835 accepted/tizen/tv/20160426.233851 accepted/tizen/wearable/20160426.233847 submit/tizen/20160426.014338
authorChangyeon Lee <cyeon.lee@samsung.com>
Mon, 25 Apr 2016 04:11:36 +0000 (13:11 +0900)
committerChangyeon Lee <cyeon.lee@samsung.com>
Mon, 25 Apr 2016 04:12:05 +0000 (13:12 +0900)
Change-Id: I94fa2fbc7f64331436e6e0069d99da7e3616d46e
Signed-off-by: Changyeon Lee <cyeon.lee@samsung.com>
src/tbm_surface_internal.c

index 796add8..6aa6c31 100644 (file)
@@ -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;