Skip to content

Commit

Permalink
DAOS-7240 obj: Coverity fixes (#5507)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryon-jensen authored Apr 22, 2021
1 parent b1aac3f commit b83b24e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/object/obj_enum.c
Original file line number Diff line number Diff line change
Expand Up @@ -502,11 +502,11 @@ csum_copy_inline(int type, vos_iter_entry_t *ent, struct dss_enum_arg *arg,
}

rc = fill_data_csum(new_csum_info, &arg->csum_iov);
daos_csummer_free_ci(csummer, &new_csum_info);
if (rc != 0) {
D_ERROR("Issue filling csum data");
return rc;
}
daos_csummer_free_ci(csummer, &new_csum_info);
} else {
rc = fill_data_csum(&ent->ie_csum, &arg->csum_iov);
if (rc != 0) {
Expand Down
2 changes: 1 addition & 1 deletion src/object/srv_obj_migrate.c
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ migrate_fetch_update_inline(struct migrate_one *mrone, daos_handle_t oh,
int i;
int rc = 0;
struct daos_oclass_attr *oca;
struct daos_csummer *csummer;
struct daos_csummer *csummer = NULL;
d_iov_t *csums_iov = NULL;
d_iov_t csum_iov_fetch = {0};
d_iov_t tmp_csum_iov;
Expand Down

0 comments on commit b83b24e

Please sign in to comment.