summaryrefslogtreecommitdiffstats
path: root/mgmtd
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2024-01-25 12:53:53 +0100
committerChristian Hopps <chopps@labn.net>2024-01-26 18:34:46 +0100
commitb92ad5046e9dd7c4b335906a0bf3b38a3ff55454 (patch)
tree62ba1d02d19c8e9ccba5fb57afee2f55cbbb4d8f /mgmtd
parentmgmtd: cleanup txn without scheduling (diff)
downloadfrr-b92ad5046e9dd7c4b335906a0bf3b38a3ff55454.tar.xz
frr-b92ad5046e9dd7c4b335906a0bf3b38a3ff55454.zip
mgmtd: fix memleak
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'mgmtd')
-rw-r--r--mgmtd/mgmt_txn.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mgmtd/mgmt_txn.c b/mgmtd/mgmt_txn.c
index 9ab476716..45bc3a293 100644
--- a/mgmtd/mgmt_txn.c
+++ b/mgmtd/mgmt_txn.c
@@ -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;
}