isync

mailbox synchronization program
git clone https://git.code.sf.net/p/isync/isync
Log | Files | Refs | README | LICENSE

commit 85688d1c1a6053041e49b959350ed585f8209b4a
parent 09d11245cde07fa7711cdb78b695a44e14f0fa38
Author: Oswald Buddenhagen <ossi@users.sf.net>
Date:   Mon, 11 Nov 2019 22:42:42 +0100

don't leak the channel list after all

unlike the actual configuration data, it's not kept in global variables,
so it shows up in memcheck.

amends 1de3ecd88.

Diffstat:
Msrc/main.c | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/main.c b/src/main.c @@ -973,7 +973,10 @@ sync_chans( main_vars_t *mvars, int ent ) chans_done++; stats(); } - } while ((mvars->chanptr = mvars->chanptr->next)); + chan_ent_t *nchan = mvars->chanptr->next; + free( mvars->chanptr ); + mvars->chanptr = nchan; + } while (mvars->chanptr); for (t = 0; t < N_DRIVERS; t++) drivers[t]->cleanup(); }