Skip Menu |

This queue is for tickets about the Net-Interface CPAN distribution.

Report information
The Basics
Id: 86056
Status: open
Priority: 0/
Queue: Net-Interface

People
Owner: Nobody in particular
Requestors: PRO [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: memory leak
--- line 582 #if (defined(USE_GETIFADDRS) && defined(HAVE_SOCKADDR_DL_STRUCT)) getifaddrs(&ifap); while(1) { if (ifap == NULL) break; if (strncmp(name, ifap -> ifa_name, IFNAMSIZ) == 0) { family = ifap -> ifa_addr -> sa_family; if (family == AF_LINK) { sdl = (struct sockaddr_dl *) ifap->ifa_addr; haddr = sdl->sdl_data + sdl->sdl_nlen; hlen = sdl->sdl_alen; break; } } ifap = ifap -> ifa_next; <- memory leak! } freeifaddrs(ifap); (free what? it is null here)
On Tue Jun 11 06:49:28 2013, PRO wrote: Show quoted text
> --- line 582 > #if (defined(USE_GETIFADDRS) && defined(HAVE_SOCKADDR_DL_STRUCT)) > getifaddrs(&ifap); > > while(1) { > if (ifap == NULL) break; > if (strncmp(name, ifap -> ifa_name, IFNAMSIZ) == 0) { > family = ifap -> ifa_addr -> sa_family; > if (family == AF_LINK) { > sdl = (struct sockaddr_dl *) ifap->ifa_addr; > haddr = sdl->sdl_data + sdl->sdl_nlen; > hlen = sdl->sdl_alen; > break; > } > } > ifap = ifap -> ifa_next; <- memory leak! > } > freeifaddrs(ifap); (free what? it is null here)
I no longer have the resources to work on this module. If you have a patch, please submit it and I will patch the module WITHOUT TESTING it. If you would like to help maintain the module that would be appreciated. MAINTENER(s) needed Michael