fix dir close leak
This commit is contained in:
parent
df46deb93c
commit
8a422ad27d
@ -184,6 +184,7 @@ int ObCgroupCtrl::which_type_dir_(const char *curr_path, int &type)
|
||||
}
|
||||
}
|
||||
}
|
||||
closedir(dir);
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
@ -269,6 +270,7 @@ int ObCgroupCtrl::recursion_process_group_(const char *curr_path, DirProcessor *
|
||||
LOG_WARN("process path failed", K(sub_path));
|
||||
}
|
||||
}
|
||||
closedir(dir);
|
||||
}
|
||||
}
|
||||
if (OB_SUCC(ret) && 0 != strcmp(root_cgroup_, curr_path) &&
|
||||
|
Loading…
x
Reference in New Issue
Block a user