Description of problem: libresolve leaks memory Patch attached (based on CVS commits of Ulrich Drepper 31.10.2005 - 1.11.2005) - http://sources.redhat.com/ml/glibc-cvs/2005-q4/ Additional info: discussed in thread http://sourceware.org/ml/libc-alpha/2005-10/msg00059.html
Created attachment 142303 [details] patch itself
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).