Change-Id: I6feb7f196d7a3ab93a32f8de6e9797de5bf5ccc5
/* LCOV_EXCL_START */
TBM_ERR("memory allocationc failed.");
*error = TBM_ERROR_OUT_OF_MEMORY;
- _tbm_bufmgr_mutex_unlock();
- return NULL;
+ goto failed;
/* LCOV_EXCL_STOP */
}
if (!bo->bo_data) {
/* LCOV_EXCL_START */
free(bo);
- _tbm_bufmgr_mutex_unlock();
- return NULL;
+ goto failed;
/* LCOV_EXCL_STOP */
}
_tbm_bufmgr_mutex_unlock();
return bo;
+
/* LCOV_EXCL_START */
-fail:
+failed:
_tbm_bufmgr_mutex_unlock();
return NULL;