From: Vincent Bernat Date: Wed, 20 May 2015 18:32:40 +0000 (+0200) Subject: lldpcli: fix a memory leak when querying custom TLVs X-Git-Tag: 0.7.15~14 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d68bcbe9653a2c2b66ede7fdf9fe44c39549ad32;p=thirdparty%2Flldpd.git lldpcli: fix a memory leak when querying custom TLVs --- diff --git a/src/client/conf-lldp.c b/src/client/conf-lldp.c index a0cfe42f..195df122 100644 --- a/src/client/conf-lldp.c +++ b/src/client/conf-lldp.c @@ -276,7 +276,10 @@ set: /* Assign it to port */ lldpctl_atom_set(port, lldpctl_k_custom_tlv, tlv); + + lldpctl_atom_dec_ref(tlv); } + lldpctl_atom_dec_ref(custom_tlvs); } lldpctl_atom_dec_ref(port); }