Re: [RFC PATCH] gdbstub: clean-up vcont handling to avoid goto

2023-06-27 Thread Philippe Mathieu-Daudé
On 27/6/23 13:05, Alex Bennée wrote: We can handle all the error exit cases by using g_autofree() for the one thing that needs cleaning up on the exit. Signed-off-by: Alex Bennée --- gdbstub/gdbstub.c | 28 +--- 1 file changed, 9 insertions(+), 19 deletions(-) Revie

[RFC PATCH] gdbstub: clean-up vcont handling to avoid goto

2023-06-27 Thread Alex Bennée
We can handle all the error exit cases by using g_autofree() for the one thing that needs cleaning up on the exit. Signed-off-by: Alex Bennée --- gdbstub/gdbstub.c | 28 +--- 1 file changed, 9 insertions(+), 19 deletions(-) diff --git a/gdbstub/gdbstub.c b/gdbstub/gdbstu