bo2 = tbm_bufmgr_internal_find_bo(bufmgr, bo);
if (bo2) {
bo2->ref_cnt++;
+ free(bo->bo_data);
free(bo);
_tbm_bufmgr_mutex_unlock();
return bo2;
TBM_TRACE_BO("find bo(%p) ref(%d) key(%d) flag(%s) in list",
bo2, bo2->ref_cnt, key, _tbm_flag_to_str(bo2->flags));
bo2->ref_cnt++;
+ free(bo->bo_data);
free(bo);
_tbm_set_last_result(TBM_ERROR_NONE);
_tbm_bufmgr_mutex_unlock();
TBM_TRACE_BO("find bo(%p) ref(%d) fd(%d) flag(%s) in list",
bo2, bo2->ref_cnt, fd, _tbm_flag_to_str(bo2->flags));
bo2->ref_cnt++;
+ free(bo->bo_data);
free(bo);
_tbm_set_last_result(TBM_ERROR_NONE);
_tbm_bufmgr_mutex_unlock();