Changeset 42a418e for help.c


Ignore:
Timestamp:
2015-11-26T01:59:00Z (8 years ago)
Author:
dequis <dx@…>
Branches:
master
Children:
a3019499
Parents:
7554702
git-author:
dequis <dx@…> (26-11-15 01:58:20)
git-committer:
dequis <dx@…> (26-11-15 01:59:00)
Message:

help: free strings added by help_add_mem()

Not really a leak, but I want valgrind to be happy because valgrind is
nice to me. I love you valgrind <3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • help.c

    r7554702 r42a418e  
    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;
Note: See TracChangeset for help on using the changeset viewer.