From 39a39abf7c9ce3a146dbbe32740bcf228d573e35 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Wed, 20 May 2015 20:34:27 +0200 Subject: [PATCH] lldpcli: fix another memory leak when querying statistics --- src/client/display.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/client/display.c b/src/client/display.c index f68027d8..bac8b75f 100644 --- a/src/client/display.c +++ b/src/client/display.c @@ -737,6 +737,7 @@ display_interfaces_stats(lldpctl_conn_t *conn, struct writer *w, h_delete_cnt += lldpctl_atom_get_int(port, lldpctl_k_delete_cnt); } + lldpctl_atom_dec_ref(port); } if (summary) { -- 2.39.5