!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
commit 59fbe91d8b
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 0 deletions

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 {