Changeset db8a034 in mainline
- Timestamp:
- 2011-12-09T12:38:13Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a2bd204f, c8c43cae
- Parents:
- c40f385 (diff), 04aaed8f (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/exfat/exfat_directory.c
rc40f385 rdb8a034 92 92 int rc = EOK; 93 93 94 if (di->b) 94 if (di->b) { 95 95 rc = block_put(di->b); 96 di->b = NULL; 97 } 96 98 97 99 return rc; … … 285 287 for (i = 0; i < count; i++) { 286 288 rc = exfat_directory_get(di, &de); 287 if (rc != EOK) 288 return rc; 289 if (rc != EOK) { 290 free(array); 291 return rc; 292 } 289 293 array[i] = *de; 290 294 rc = exfat_directory_next(di); … … 312 316 for (i = 0; i < count; i++) { 313 317 rc = exfat_directory_get(di, &de); 314 if (rc != EOK) 315 return rc; 318 if (rc != EOK) { 319 free(array); 320 return rc; 321 } 316 322 *de = array[i]; 317 323 di->b->dirty = true; … … 424 430 425 431 di->b->dirty = true; 426 sname += chars;427 432 } 428 433
Note:
See TracChangeset
for help on using the changeset viewer.