Changeset 9c4cf0d in mainline for uspace/app/bdsh/cmds/modules/cp/cp.c
- Timestamp:
- 2017-04-02T11:24:06Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 151f1cc
- Parents:
- b19e892
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/cmds/modules/cp/cp.c
rb19e892 r9c4cf0d 391 391 if (fd2 < 0) { 392 392 printf("Unable to open destination file %s\n", dest); 393 close(fd1);393 vfs_put(fd1); 394 394 return -1; 395 395 } … … 397 397 if (vfs_stat(fd1, &st) != EOK) { 398 398 printf("Unable to fstat %d\n", fd1); 399 close(fd1);400 close(fd2);399 vfs_put(fd1); 400 vfs_put(fd2); 401 401 return -1; 402 402 } … … 425 425 426 426 out: 427 close(fd1);428 close(fd2);427 vfs_put(fd1); 428 vfs_put(fd2); 429 429 if (buff) 430 430 free(buff);
Note:
See TracChangeset
for help on using the changeset viewer.