projects
/
pazpar2-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Avoid session lock while client search is initiated
[pazpar2-moved-to-github.git]
/
src
/
eventl.c
diff --git
a/src/eventl.c
b/src/eventl.c
index
562587c
..
9804472
100644
(file)
--- 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);
IOCHAN next = chan->next;
if (chan->name)
xfree(chan->name);
- xfree(free);
+ xfree(chan);
iochan_use(-1);
return next;
}
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) {
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;
}
} else
nextp = &p->next;
}