fix: fix memory leak when uv_loop_close

This commit is contained in:
slzhou 2022-07-05 14:02:33 +08:00
parent eb2194b6ef
commit 7088166e98
1 changed files with 4 additions and 0 deletions

View File

@ -1565,6 +1565,10 @@ void constructUdfService(void *argsThread) {
//TODO return value of uv_run
uv_run(&udfc->uvLoop, UV_RUN_DEFAULT);
uv_loop_close(&udfc->uvLoop);
uv_walk(&udfc->uvLoop, udfUdfdCloseWalkCb, NULL);
uv_run(&udfc->uvLoop, UV_RUN_DEFAULT);
uv_loop_close(&udfc->uvLoop);
}
int32_t udfcOpen() {