Bug#365233: libc6: memory leak in getprotobyname
Package: libc6
Version: 2.3.6-7
Severity: normal
A memory leak can be observed by using getprotobyname. A test program:
#include <netdb.h>
main() {
struct protoent *pent;
while(1) {
pent = getprotobyname("tcp");
}
}
Compile and run the program and watch the memory consumption with top.
I observed the memory leak by using ldirectord.
-- System Information:
Debian Release: testing/unstable
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12.6-xen0
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)
Versions of packages libc6 depends on:
ii tzdata 2006c-2 Time Zone and Daylight Saving Time
libc6 recommends no packages.
-- no debconf information
Reply to: