mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-08-04 18:00:55 +00:00
tools: fix memory leakage issue in acrnlog.c
In function mk_dir(), handler 'dir' returned by opendir() is not released before function return and results in memory leakage. Tracked-On: #7098 Signed-off-by: Yonghua Huang <yonghua.huang@intel.com>
This commit is contained in:
parent
13ce55ef4f
commit
9699353a08
@ -414,6 +414,7 @@ static int mk_dir(const char *path)
|
|||||||
} else
|
} else
|
||||||
remove(acrnlog_file);
|
remove(acrnlog_file);
|
||||||
}
|
}
|
||||||
|
closedir(dir);
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user