vtysh: fix a memory leak in vtysh_client_execute

buf is dynamically allocated and needs to be freed in the error handling
path too.

Signed-off-by: Christian Franke <chris@opensourcerouting.org>
Signed-off-by: Christian Franke <chris@opensourcerouting.org>
Acked-by: Donald Sharp <sharpd@cumulusnetworks.com>
1 file changed