提交 9f47faff 编写于 作者: F Far 提交者: Gitee

fix: PathCacheFree try to free name field in struct PathCache

The name field of struct PathCache is not allocated. It should not try to free it by free(nc->name)

Close #I3NTH9
上级 e93ff481
......@@ -134,7 +134,6 @@ int PathCacheFree(struct PathCache *nc)
LOS_ListDelete(&nc->hashEntry);
LOS_ListDelete(&nc->parentEntry);
LOS_ListDelete(&nc->childEntry);
free(nc->name);
free(nc);
return LOS_OK;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册