Ignore:
Timestamp:
2016-05-02T20:58:16Z (9 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7c4b26c
Parents:
6adb775f (diff), 5035ba05 (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.
Message:

Merge mainline, which has dltest and fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/bdsh/cmds/modules/mkfile/mkfile.c

    r6adb775f r32573ff  
    165165                const char byte = 0x00;
    166166
    167                 if ((rc2 = lseek(fd, file_size - 1, SEEK_SET)) < 0)
     167                if ((rc2 = lseek(fd, file_size - 1, SEEK_SET)) < 0) {
     168                        close(fd);
    168169                        goto error;
     170                }
    169171
    170172                rc2 = write(fd, &byte, sizeof(char));
    171                 if (rc2 < 0)
     173                if (rc2 < 0) {
     174                        close(fd);
    172175                        goto error;
     176                }
    173177                return CMD_SUCCESS;
    174178        }
     
    187191                        printf("%s: Error writing file (%d).\n", cmdname, errno);
    188192                        close(fd);
     193                        free(buffer);
    189194                        return CMD_FAILURE;
    190195                }
Note: See TracChangeset for help on using the changeset viewer.