X-Git-Url: http://lists.indexdata.com/cgi-bin?a=blobdiff_plain;f=src%2Feventl.c;h=562587c7e8a6649aae6ed88bd763126433959d8b;hb=846689d992d2183563cba6aa5f52f60dc8b14ab4;hp=840b735479a9c0ace0bb1caa3b22bebd87830337;hpb=e930c3ba02451488536eaf8ed4a09ab786ce5dc4;p=pazpar2-moved-to-github.git diff --git a/src/eventl.c b/src/eventl.c index 840b735..562587c 100644 --- a/src/eventl.c +++ b/src/eventl.c @@ -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(*nextp); } else nextp = &p->next; }