summaryrefslogtreecommitdiff
path: root/examples/amqp_listen.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/amqp_listen.c')
-rw-r--r--examples/amqp_listen.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/amqp_listen.c b/examples/amqp_listen.c
index 9026226..1659cec 100644
--- a/examples/amqp_listen.c
+++ b/examples/amqp_listen.c
@@ -133,6 +133,8 @@ int main(int argc, char const *const *argv) {
}
}
+ amqp_bytes_free(queuename);
+
die_on_amqp_error(amqp_channel_close(conn, 1, AMQP_REPLY_SUCCESS),
"Closing channel");
die_on_amqp_error(amqp_connection_close(conn, AMQP_REPLY_SUCCESS),