fix handle leak in sdmc_stat

This commit is contained in:
Dave Murphy 2015-02-01 15:19:22 +00:00
parent 3bed83720f
commit 8af5a9946f

View File

@ -565,6 +565,7 @@ sdmc_stat(struct _reent *r,
st->st_uid = 1; st->st_uid = 1;
st->st_gid = 2; st->st_gid = 2;
st->st_mode = S_IFDIR | S_IWUSR | S_IWGRP | S_IWOTH | S_IRUSR | S_IRGRP | S_IROTH; st->st_mode = S_IFDIR | S_IWUSR | S_IWGRP | S_IWOTH | S_IRUSR | S_IRGRP | S_IROTH;
FSFILE_Close(fd);
return 0; return 0;
} }