From 55cbabd7dad097cc3866b049da63114f682facbd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fl=C3=A1vio=20J=2E=20Saraiva?= Date: Sun, 10 Mar 2024 23:05:35 +0000 Subject: [PATCH] Fix memory leak in vtty_create --- common/dev_vtty.c | 1 + 1 file changed, 1 insertion(+) diff --git a/common/dev_vtty.c b/common/dev_vtty.c index 29014a4a5..f9c4b388f 100644 --- a/common/dev_vtty.c +++ b/common/dev_vtty.c @@ -546,6 +546,7 @@ vtty_t *vtty_create(vm_instance_t *vm,char *name,int type,int tcp_port, default: fprintf(stderr,"tty_create: bad vtty type %d\n",vtty->type); + free(vtty); return NULL; }