From fb805bb8b791b0266072b2415651cb54020d5098 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Sat, 21 Jan 2023 18:54:17 +0800 Subject: fix(remote): don't leak memory on failure to connect to server (#21931) Also fix the race between output and resize in the test for this. --- src/nvim/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/nvim/main.c b/src/nvim/main.c index 62af56e972..c3f6b6788e 100644 --- a/src/nvim/main.c +++ b/src/nvim/main.c @@ -885,7 +885,7 @@ static void remote_request(mparm_T *params, int remote_args, char *server_addr, os_errmsg("Remote ui failed to start: "); os_errmsg(connect_error); os_errmsg("\n"); - exit(1); + os_exit(1); } ui_client_channel_id = chan; -- cgit