posix: fs: ZFD_IOCTL_CLOSE: Be sure to call posix_fs_free_obj()
To make sure that entry in fs.c:desc_array[] is freed. Note that freeing an entry in fdtable is handled by generic implementation of close(). Fixes: #17231 Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
This commit is contained in:
parent
792d6fc19a
commit
6c5a08899a
1 changed files with 1 additions and 0 deletions
|
@ -102,6 +102,7 @@ static int fs_ioctl_vmeth(void *obj, unsigned int request, va_list args)
|
|||
switch (request) {
|
||||
case ZFD_IOCTL_CLOSE:
|
||||
rc = fs_close(&ptr->file);
|
||||
posix_fs_free_obj(ptr);
|
||||
break;
|
||||
|
||||
case ZFD_IOCTL_LSEEK: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue