diff --git a/misc/debug_tools/acrn_log/acrnlog.c b/misc/debug_tools/acrn_log/acrnlog.c index e84f2eeb8..24cbe793e 100644 --- a/misc/debug_tools/acrn_log/acrnlog.c +++ b/misc/debug_tools/acrn_log/acrnlog.c @@ -414,6 +414,7 @@ static int mk_dir(const char *path) } else remove(acrnlog_file); } + closedir(dir); } return 0;