fix memory leak in controller and use lock protect apiserver data structure

This commit is contained in:
Rongsong Shen 2026-01-26 15:35:45 +08:00
parent 06c561cea4
commit e7dc09c604
3 changed files with 29 additions and 3 deletions

View file

@ -83,6 +83,7 @@ typedef struct {
} scheduler_t;
typedef struct {
mylock_t lock;
char* name;
endpoint_t* ep;
} cluster_apiserver_t;