summaryrefslogtreecommitdiff
path: root/lib/vty.c
diff options
context:
space:
mode:
authorChristian Hopps <chopps@labn.net>2023-05-19 23:12:33 -0400
committerChristian Hopps <chopps@labn.net>2023-05-30 02:10:20 -0400
commit52a50ca1d799096e04a4497974a925ee71166cf9 (patch)
tree293ea5a1c1fa57dc0a6a80491b4874e4a82bc25c /lib/vty.c
parent5ba5613077c78f99ef14715bd56c796f2bfc2d95 (diff)
lib: mgmtd: fix memleaks
Signed-off-by: Christian Hopps <chopps@labn.net>
Diffstat (limited to 'lib/vty.c')
-rw-r--r--lib/vty.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/vty.c b/lib/vty.c
index 1e17f18a23..51c2ebdc55 100644
--- a/lib/vty.c
+++ b/lib/vty.c
@@ -2472,6 +2472,7 @@ void vty_close(struct vty *vty)
if (vty->fd == STDIN_FILENO)
was_stdio = true;
+ XFREE(MTYPE_TMP, vty->pending_cmds_buf);
XFREE(MTYPE_VTY, vty->buf);
if (vty->error) {