]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
Don't free h_lladdr since it is statically allocated
authorVincent Bernat <vbernat@wanadooportails.com>
Fri, 7 Nov 2008 10:39:26 +0000 (11:39 +0100)
committerVincent Bernat <vbernat@wanadooportails.com>
Fri, 7 Nov 2008 10:39:26 +0000 (11:39 +0100)
src/lldpd.c

index 3d0253dd54bc41db16677a35adc13e3ffa7fefa0..10fa5425df81ebd43e0455c3de2a39f62a04b211 100644 (file)
@@ -664,7 +664,6 @@ lldpd_port_add(struct lldpd *cfg, struct ifaddrs *ifa)
 
                if (lldpd_iface_init(cfg, hardware) != 0) {
                        lldpd_vlan_cleanup(&hardware->h_lport);
-                       free(hardware->h_lladdr);
                        free(hardware->h_proto_macs);
                        free(hardware);
                        return (NULL);