mgmtd: fix memleak

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
This commit is contained in:
Igor Ryzhov 2024-01-25 13:53:53 +02:00 committed by Christian Hopps
parent 771c8f3b2a
commit b92ad5046e

View File

@ -2138,6 +2138,7 @@ int mgmt_txn_notify_be_adapter_conn(struct mgmt_be_client_adapter *adapter,
if (!txn) {
MGMTD_TXN_ERR("Failed to create CONFIG Transaction for downloading CONFIGs for client '%s'",
adapter->name);
nb_config_diff_del_changes(adapter_cfgs);
return -1;
}