Changeset 9c4cf0d in mainline for uspace/lib/c/generic/io/io.c
- Timestamp:
- 2017-04-02T11:24:06Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade
- Children:
- 151f1cc
- Parents:
- b19e892
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/io/io.c
rb19e892 r9c4cf0d 305 305 if (rc != EOK) { 306 306 errno = rc; 307 close(file);307 vfs_put(file); 308 308 free(stream); 309 309 return NULL; … … 314 314 if (rc != EOK) { 315 315 errno = rc; 316 close(file);316 vfs_put(file); 317 317 free(stream); 318 318 return NULL; … … 370 370 371 371 if (stream->fd >= 0) 372 rc = close(stream->fd);372 rc = vfs_put(stream->fd); 373 373 374 374 list_remove(&stream->link);
Note:
See TracChangeset
for help on using the changeset viewer.