Fix memory leak
authorHenning Rogge <hrogge@googlemail.com>
Mon, 15 Nov 2010 14:39:44 +0000 (15:39 +0100)
committerHenning Rogge <hrogge@googlemail.com>
Mon, 15 Nov 2010 14:39:44 +0000 (15:39 +0100)
src/unix/ifnet.c

index 94a7525..0879c31 100644 (file)
@@ -462,11 +462,6 @@ os_init_interface(struct interface *ifp, struct olsr_if_config *iface)
     OLSR_DEBUG(LOG_INTERFACE, "\tMulticast: %s\n", ip6_to_string(&buf, &ifp->int_multicast.v6.sin6_addr));
   }
 
-  /*
-   * Clone interface name.
-   */
-  ifp->int_name = olsr_strdup(ifr_basename);
-
   /* Set interface options */
 #ifdef linux
   net_os_set_ifoptions(ifr_basename, ifp);