common/messaging: Free message list header if all message handlers are freed
authorAmitay Isaacs <amitay@gmail.com>
Tue, 2 Apr 2013 01:08:39 +0000 (12:08 +1100)
committerAmitay Isaacs <amitay@gmail.com>
Fri, 5 Apr 2013 04:19:43 +0000 (15:19 +1100)
commite1ba96d63b103bde841b634dc9c4c0eedabe72a9
tree1fb210009cc0dab15b3839a2d9e3bdc52b8e5c82
parent0372e73b27b0193240aa0a020c8ab9f79abd262f
common/messaging: Free message list header if all message handlers are freed

This makes sure that even if the srvids are not deregistered, the header
structure is freed when the last message handler has been freed as a result of
client going away.

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
(cherry picked from commit 4e1ec7412866f2d31c41de1bec0fbf788c03051b)
common/ctdb_message.c