Skip to content
Browse files

High: cib: Ensure references to disconnected channels are released so…

… they can be destroyed
  • Loading branch information...
1 parent 49c64b5 commit 3f24fe4092d889b44a912fb949201cf5ef7da8d7 @beekhof beekhof committed
Showing with 3 additions and 0 deletions.
  1. +3 −0 cib/callbacks.c
View
3 cib/callbacks.c
@@ -1234,18 +1234,21 @@ cib_shutdown(int nsig)
for(c = qb_ipcs_connection_first_get(ipcs_rw); c != NULL; c = qb_ipcs_connection_next_get(ipcs_rw, c)) {
crm_debug("Disconnecting r/w client %p...", c);
qb_ipcs_disconnect(c);
+ qb_ipcs_connection_unref(c);
disconnects++;
}
for(c = qb_ipcs_connection_first_get(ipcs_ro); c != NULL; c = qb_ipcs_connection_next_get(ipcs_ro, c)) {
crm_debug("Disconnecting r/o client %p...", c);
qb_ipcs_disconnect(c);
+ qb_ipcs_connection_unref(c);
disconnects++;
}
for(c = qb_ipcs_connection_first_get(ipcs_shm); c != NULL; c = qb_ipcs_connection_next_get(ipcs_shm, c)) {
crm_debug("Disconnecting non-blocking r/w client %p...", c);
qb_ipcs_disconnect(c);
+ qb_ipcs_connection_unref(c);
disconnects++;
}

0 comments on commit 3f24fe4

Please sign in to comment.
Something went wrong with that request. Please try again.