Hi All, I have migrated YAFFS2 to windows, by using the DIRECT interface, in order to explore a YAFFS2 NAND image file (created by mkyaffs2image) under the Win32 enviroment. My program works well, but sometime when it exits, the visual c++ 2005 warns me that there are some memory leaks. So I debug into the YAFFS2 source code, I found the problem is in "yaffs_CloneString", this function allocate a buffer for the alias string, but when I call "yaffs_Deinitialise" before my program exits, it seems the buffers allocated by "yaffs_CloneString" were not freed. so when we launch a NAND image which contains symlinks, the problem rises. (I've try to use a constant string in instand of allocating a new one in "yaffs_CloneString", the memory leaks did not happen.) Did I miss anyting other than "yaffs_Deinitialise" to do the correct shutdown? Or it's a bug of YAFFS2? Any suggestion will be appreciate! Regards Eriq Hunt