]> git.puffer.fish Git - matthieu/frr.git/commit
mgmtd: cleanup txn without scheduling
authorIgor Ryzhov <iryzhov@nfware.com>
Thu, 25 Jan 2024 11:51:58 +0000 (13:51 +0200)
committerChristian Hopps <chopps@labn.net>
Fri, 26 Jan 2024 17:34:46 +0000 (12:34 -0500)
commit771c8f3b2add1172ea656b51d089db2c6d4042d1
tree90506da6645af47a0f017815f27eab73d19ae60a
parent7e2746933758b1586196a95e7e061c37c0fed6f2
mgmtd: cleanup txn without scheduling

If the transaction is not cleaned up immediately, it can be still
referenced by some threds. If it's a commit thread and it's executed
before the actual cleanup, mgmtd crashes because of the missing
commit_cfg_req.

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
mgmtd/mgmt_txn.c