Changes in / [db8a034:c40f385] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/exfat/exfat_directory.c
rdb8a034 rc40f385 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 }98 96 99 97 return rc; … … 287 285 for (i = 0; i < count; i++) { 288 286 rc = exfat_directory_get(di, &de); 289 if (rc != EOK) { 290 free(array); 291 return rc; 292 } 287 if (rc != EOK) 288 return rc; 293 289 array[i] = *de; 294 290 rc = exfat_directory_next(di); … … 316 312 for (i = 0; i < count; i++) { 317 313 rc = exfat_directory_get(di, &de); 318 if (rc != EOK) { 319 free(array); 320 return rc; 321 } 314 if (rc != EOK) 315 return rc; 322 316 *de = array[i]; 323 317 di->b->dirty = true; … … 430 424 431 425 di->b->dirty = true; 426 sname += chars; 432 427 } 433 428
Note:
See TracChangeset
for help on using the changeset viewer.