Changeset 3fbce97 for help.c


Ignore:
Timestamp:
2016-09-24T20:14:34Z (8 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Children:
ba52ac5
Parents:
63cad66 (diff), 82cb190 (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 branch 'master' into parson

File:
1 edited

Legend:

Unmodified
Added
Removed
  • help.c

    r63cad66 r3fbce97  
    105105        h = *help;
    106106        while (h) {
    107                 if (h->fd != last_fd) {
     107                if (h->fd == -1) {
     108                        g_free(h->offset.mem_offset);
     109                } else if (h->fd != last_fd) {
    108110                        close(h->fd);
    109111                        last_fd = h->fd;
     
    146148                        if (lseek(h->fd, h->offset.file_offset, SEEK_SET) == -1 ||
    147149                            read(h->fd, s, h->length) != h->length) {
     150                                g_free(s);
    148151                                return NULL;
    149152                        }
Note: See TracChangeset for help on using the changeset viewer.