From: Christian Franke <nob...@nowhere.ws> buf is dynamically allocated and needs to be freed in the error handling path too.
Signed-off-by: Christian Franke <ch...@opensourcerouting.org> --- vtysh/vtysh.c | 1 + 1 file changed, 1 insertion(+) diff --git a/vtysh/vtysh.c b/vtysh/vtysh.c index 625ab1c..2497f70 100644 --- a/vtysh/vtysh.c +++ b/vtysh/vtysh.c @@ -124,6 +124,7 @@ vtysh_client_execute (struct vtysh_client *vclient, const char *line, FILE *fp) { fprintf (stderr, ERR_WHERE_STRING \ "warning - pbuf beyond buffer end.\n"); + XFREE(MTYPE_TMP, buf); return CMD_WARNING; } -- 2.8.0 _______________________________________________ Quagga-dev mailing list Quagga-dev@lists.quagga.net https://lists.quagga.net/mailman/listinfo/quagga-dev