connection: dont leak replies if message-queueing fails
authorDavid Herrmann <dh.herrmann@gmail.com>
Thu, 23 Oct 2014 11:30:13 +0000 (13:30 +0200)
committerDavid Herrmann <dh.herrmann@gmail.com>
Thu, 23 Oct 2014 11:30:13 +0000 (13:30 +0200)
commitfbe016ac90cbbbd6385283effe7150711221926c
tree20eea6e4f9840e9d37b54bb86307d0114b34daa9
parent2036b0b5e4d82f5228de51be78b426eaed0d6e89
connection: dont leak replies if message-queueing fails

Currently, we queue the conn_reply _before_ queueing the actual message.
This might leak conn_reply objects if we cannot queue the message. Avoid
this by queuing the conn_reply object at the same time we queue the
message.

Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
connection.c