fix(ui_client): fix memory leak (#39770)

This commit is contained in:
zeertzjq
2026-05-13 10:25:43 +08:00
committed by GitHub
parent 6c21a72b85
commit 89b5a1a181

View File

@@ -380,6 +380,7 @@ void ui_client_attach_to_restarted_server(bool error_restart)
}
}
chan_id = ui_client_start_server(first_arg, cmdargs.size, argv);
xfree(argv);
ui_client_error_exit = -1;
} else {
bool is_tcp = socket_address_tcp_host_end(first_arg) != NULL;