diff --git a/fs/fat/fat.c b/fs/fat/fat.c index 06c8ed14bdab0ac948cf905e09a2821ec63bfdab..29cae8d3914761cdd965b3ec536b807510e39fa0 100644 --- a/fs/fat/fat.c +++ b/fs/fat/fat.c @@ -1174,10 +1174,6 @@ int file_fat_read_at(const char *filename, loff_t pos, void *buffer, /* For saving default max clustersize memory allocated to malloc pool */ dir_entry *dentptr = itr->dent; - free(itr); - - itr = NULL; - ret = get_contents(&fsdata, dentptr, pos, buffer, maxsize, actread); out_free_both: