Red Hat Bugzilla – Bug 217555
Memory leak in libresolv fix
Last modified: 2007-11-30 17:07:10 EST
Description of problem:
libresolve leaks memory
Patch attached (based on CVS commits of Ulrich Drepper 31.10.2005 - 1.11.2005) -
discussed in thread http://sourceware.org/ml/libc-alpha/2005-10/msg00059.html
Created attachment 142303 [details]
Created attachment 142326 [details]
Corrected patch (now compiles)
Sorry, forgot to include <stdbool.h> where needed.
Created attachment 142337 [details]
(Hopefully) Final version. Now it really builds correctly.
Ups, sorry, missed second commit to res_init.c.
Now, I have build process finished, and I am waiting for rpms to be built in
next two hours. I hope now leak should be really fixed.
This is too risky this late in RHEL3 release cycle and there is a workaround
available. E.g. addition of __res_iclose@@GLIBC_PRIVATE will cause failures
during upgrades for system daemons that are started before the upgrade and dlopen
libresolv after glibc upgrade (e.g. as part of gethostby* or getaddrinfo call).