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
Further work
[pazpar2-moved-to-github.git]
/
src
/
connection.c
diff --git
a/src/connection.c
b/src/connection.c
index
c2c4bea
..
fbdaf79
100644
(file)
--- a/
src/connection.c
+++ b/
src/connection.c
@@
-427,6
+427,8
@@
static int connection_connect(struct connection *con, iochan_man_t iochan_man)
if (iochan_add(iochan_man, con->iochan))
{
yaz_log(YLOG_FATAL, "Out of connections");
+ iochan_destroy(con->iochan);
+ con->iochan = 0;
ZOOM_connection_destroy(con->link);
con->link = 0;
r = -1;