rconn_destroy() should close monitoring connections, to avoid a leak.
Our current code base never closes an rconn that has a monitoring connection, so this does not fix any larger problem.
This commit is contained in:
1 parent
0ae1bf3ac4
commit
58b3bc45e4
1 file changed
+5
@@ -264,10 +264,15 @@ void
|
||||
rconn_destroy(struct rconn *rc)
|
||||
{
|
||||
if (rc) {
|
||||
size_t i;
|
||||
|
||||
free(rc->name);
|
||||
vconn_close(rc->vconn);
|
||||
flush_queue(rc);
|
||||
queue_destroy(&rc->txq);
|
||||
for (i = 0; i < rc->n_monitors; i++) {
|
||||
vconn_close(rc->monitors[i]);
|
||||
}
|
||||
free(rc);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user