Skip to content

Commit

Permalink
mgmtd: Fix up some coverity issues
Browse files Browse the repository at this point in the history
Signed-off-by: Donald Sharp <[email protected]>
  • Loading branch information
donaldsharp committed Jun 5, 2023
1 parent 75aaf03 commit 60dc299
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mgmtd/mgmt_txn.c
Original file line number Diff line number Diff line change
Expand Up @@ -1122,7 +1122,6 @@ static int mgmt_txn_create_config_batches(struct mgmt_txn_req *txn_req,
}

free(xpath);
xpath = NULL;
}

cmtcfg_req->cmt_stats->last_batch_cnt = num_chgs;
Expand Down Expand Up @@ -2542,7 +2541,7 @@ int mgmt_txn_notify_be_cfgdata_reply(
{
struct mgmt_txn_ctx *txn;
struct mgmt_txn_be_cfg_batch *cfg_btch;
struct mgmt_commit_cfg_req *cmtcfg_req = NULL;
struct mgmt_commit_cfg_req *cmtcfg_req;

txn = mgmt_txn_id2ctx(txn_id);
if (!txn || txn->type != MGMTD_TXN_TYPE_CONFIG)
Expand Down

0 comments on commit 60dc299

Please sign in to comment.