protocol: fix potential pty buf leak

This commit is contained in:
Shuanglei Tao
2022-08-18 10:35:23 +08:00
parent eb055722cb
commit 6cfd9b29ae
4 changed files with 43 additions and 21 deletions

View File

@@ -56,6 +56,11 @@ struct pss_tty {
int lws_close_status;
};
typedef struct {
struct pss_tty *pss;
bool ws_closed;
} pty_ctx_t ;
struct server {
int client_count; // client count
char *prefs_json; // client preferences