aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/main.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-01-21 18:54:17 +0800
committerGitHub <noreply@github.com>2023-01-21 18:54:17 +0800
commitfb805bb8b791b0266072b2415651cb54020d5098 (patch)
treebaf0d616868ebece976b2e1656588abfdeee4a90 /src/nvim/main.c
parenteec979ca8160ae4230b63d406b2dae4d3e17d500 (diff)
downloadrneovim-fb805bb8b791b0266072b2415651cb54020d5098.tar.gz
rneovim-fb805bb8b791b0266072b2415651cb54020d5098.tar.bz2
rneovim-fb805bb8b791b0266072b2415651cb54020d5098.zip
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.
Diffstat (limited to 'src/nvim/main.c')
-rw-r--r--src/nvim/main.c2
1 files changed, 1 insertions, 1 deletions
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;