From: Vincent Bernat Date: Fri, 7 Nov 2008 10:39:26 +0000 (+0100) Subject: Don't free h_lladdr since it is statically allocated X-Git-Tag: 0.2~25^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8bdf23fd10e68803334814152dbeabca3181c9e6;p=thirdparty%2Flldpd.git Don't free h_lladdr since it is statically allocated --- diff --git a/src/lldpd.c b/src/lldpd.c index 3d0253dd..10fa5425 100644 --- a/src/lldpd.c +++ b/src/lldpd.c @@ -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);