execute mutex unlock before false return 73/114373/1
authorJunkyeong Kim <jk0430.kim@samsung.com>
Mon, 13 Feb 2017 06:57:58 +0000 (15:57 +0900)
committerJunkyeong Kim <jk0430.kim@samsung.com>
Mon, 13 Feb 2017 06:57:58 +0000 (15:57 +0900)
Change-Id: I5016870d1d7e68799c100dff259eb2ae4f408961

src/tbm_bufmgr.c

index 8dd0c30..9b79789 100644 (file)
@@ -1589,7 +1589,11 @@ tbm_bufmgr_debug_queue_dump(char *path, int count, int onoff)
        } else {
                int w, h;
 
-               TBM_RETURN_VAL_IF_FAIL(path != NULL, 0);
+               if (path == NULL) {
+                       TBM_LOG_E("path is null");
+                       pthread_mutex_unlock(&gLock);
+                       return 0;
+               }
                TBM_LOG_D("path=%s count=%d onoff=%d\n", path, count, onoff);
 
                if (_tbm_util_get_max_surface_size(&w, &h) == 0) {