]> git.proxmox.com Git - mirror_frr.git/commit
vtysh: fix incorrect memory statistics
authorIgor Ryzhov <iryzhov@nfware.com>
Mon, 30 Nov 2020 15:50:51 +0000 (18:50 +0300)
committerIgor Ryzhov <iryzhov@nfware.com>
Mon, 30 Nov 2020 15:55:40 +0000 (18:55 +0300)
commit6df43392d8703df6e92b7ae6e96373e6c3fc5083
tree24694e9cbb47dcc06281f7da2b55b69f98380a74
parent40ab41115dd415cc42e311a96d66bb83ce4f1150
vtysh: fix incorrect memory statistics

As code comment states, 1 count of MTYPE_COMPLETION is leaked for each
autocompleted token. Let's manually decrement the counter before passing
the pointer to readline.

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
lib/memory.c
lib/memory.h
vtysh/vtysh.c