devoptab: Fix double free in __wut_fs_stat

The double free caused apps to crash when attempting to run stat on a directory
This commit is contained in:
rw-r-r-0644 2019-02-24 15:49:16 +01:00 committed by James
parent 254de47b15
commit 6ea6625b78

View File

@ -45,6 +45,5 @@ __wut_fs_stat(struct _reent *r,
st->st_nlink = 1;
st->st_mode = S_IFDIR | S_IRWXU | S_IRWXG | S_IRWXO;
FSCloseDir(__wut_devoptab_fs_client, &cmd, fd, -1);
free(fixedPath);
return 0;
}