Cannot reproduce this with glibc-2.2.4-19 on i686 nor alpha.
I even tried to just call while(1) s = getservbyname( "foobar", "tcp");
but even that didn't show any memory leakage (both without and with nscd).