Fix leak due to sender delivery not being settled
authorAndrew Smith <ansmith@redhat.com>
Wed, 11 Apr 2018 17:16:37 +0000 (13:16 -0400)
committerAndrew Smith <ansmith@redhat.com>
Wed, 11 Apr 2018 17:16:37 +0000 (13:16 -0400)
src/amqp1.c

index 514e4be..d7be877 100644 (file)
@@ -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;