!1009 Fix : OsLs 内存泄漏问题

Merge pull request !1009 from yinjiaming/fix
This commit is contained in:
openharmony_ci
2023-01-13 08:54:49 +00:00
committed by Gitee

View File

@@ -181,6 +181,7 @@ VOID OsLs(const CHAR *pathname)
d = opendir(path);
if (d == NULL) {
PRINT_ERR("No such directory = %s\n", path);
free(path);
} else {
PRINTK("Directory %s:\n", path);
do {