From: Andrew Smith Date: Wed, 11 Apr 2018 17:16:37 +0000 (-0400) Subject: Fix leak due to sender delivery not being settled X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=e6df14cd399c5990bdd9cfa78ebcce5288d1be10;p=collectd.git Fix leak due to sender delivery not being settled --- diff --git a/src/amqp1.c b/src/amqp1.c index 514e4be7..d7be877b 100644 --- a/src/amqp1.c +++ b/src/amqp1.c @@ -199,6 +199,7 @@ static bool handle(pn_event_t *event) /* {{{ */ /* acknowledgement from peer that a message was delivered */ pn_delivery_t *dlv = pn_event_delivery(event); if (pn_delivery_remote_state(dlv) == PN_ACCEPTED) { + pn_delivery_settle(dlv); acknowledged++; } break;