X-Git-Url: http://lists.indexdata.com/cgi-bin?a=blobdiff_plain;f=src%2Feventl.c;h=9804472457f59f61e616a1a166666ec9d552fcb2;hb=2a5ea4b8e8163f827c269241d21d1850164bac8e;hp=840b735479a9c0ace0bb1caa3b22bebd87830337;hpb=3c83516283deb5286ecaf72411fc150c8e2eee20;p=pazpar2-moved-to-github.git diff --git a/src/eventl.c b/src/eventl.c index 840b735..9804472 100644 --- a/src/eventl.c +++ b/src/eventl.c @@ -123,7 +123,7 @@ IOCHAN iochan_destroy_real(IOCHAN chan) IOCHAN next = chan->next; if (chan->name) xfree(chan->name); - xfree(free); + xfree(chan); iochan_use(-1); return next; } @@ -336,7 +336,7 @@ static int event_loop(iochan_man_t man, IOCHAN *iochans) { for (nextp = iochans; *nextp;) { IOCHAN p = *nextp; if (p->destroyed && p->thread_users == 0) { - *nextp = iochan_destroy_real(nextp); + *nextp = iochan_destroy_real(p); } else nextp = &p->next; }