diff --git a/fs/jffs2/build.c b/fs/jffs2/build.c index 4580dfeec3ed13e306e50d4afa104d295a439140..dec43bb8b89d1275b65cbfabf4d6a253db003aa2 100755 --- a/fs/jffs2/build.c +++ b/fs/jffs2/build.c @@ -388,7 +388,11 @@ int jffs2_do_mount_fs(struct jffs2_sb_info *c) out_free: #ifndef __ECOS if (jffs2_blocks_use_vmalloc(c)) +#ifdef LOSCFG_KERNEL_VM LOS_VFree(c->blocks); +#else + free(c->blocks); +#endif else #endif kfree(c->blocks);