Changeset 9c4cf0d in mainline for uspace/app/tester/mm/pager1.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/app/tester/mm/pager1.c
rb19e892 r9c4cf0d 54 54 55 55 if (write(fd, (aoff64_t []) {0}, text, sizeof(text)) != sizeof(text)) { 56 close(fd);56 vfs_put(fd); 57 57 return NULL; 58 58 } … … 65 65 66 66 if (!vfs_pager_sess) { 67 close(fd);67 vfs_put(fd); 68 68 return NULL; 69 69 } … … 74 74 AS_AREA_READ | AS_AREA_CACHEABLE, vfs_pager_sess, fd, 0, 0); 75 75 if (result == AS_MAP_FAILED) { 76 close(fd);76 vfs_put(fd); 77 77 return NULL; 78 78 } … … 102 102 103 103 as_area_destroy(buffer); 104 close(fd);104 vfs_put(fd); 105 105 106 106 return NULL;
Note:
See TracChangeset
for help on using the changeset viewer.