Acked-by: Donald Sharp <[email protected]> On Tue, Jun 14, 2016 at 2:07 PM, Christian Franke <[email protected]> wrote: > From: Christian Franke <[email protected]> > > buf is dynamically allocated and needs to be freed in the error handling > path too. > > Signed-off-by: Christian Franke <[email protected]> > --- > 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 > [email protected] > https://lists.quagga.net/mailman/listinfo/quagga-dev
_______________________________________________ Quagga-dev mailing list [email protected] https://lists.quagga.net/mailman/listinfo/quagga-dev
