[6420] in Athena Bugs
rt 7.1H: hesiod(3) man page
daemon@ATHENA.MIT.EDU (Marc Horowitz)
Sat Nov 17 03:48:14 1990
To: bugs@ATHENA.MIT.EDU
Date: Sat, 17 Nov 90 03:44:59 EST
From: Marc Horowitz <marc@ATHENA.MIT.EDU>
System name: portnoy
Type and version: RTPC-ROMPC 7.1H (1 update(s) to same version)
Display type: apa16
What were you trying to do?
make my code not leak memory
What's wrong:
hesiod(3) does not mention that hes_resolve calloc's memory
which needs to be free'd by the caller. Alternately, since the return
value is static char *retvec[100], hes_resolve can free its memory
between successive calls. I would recommend the former, since it is
less likely to break existing code.
What should have happened:
Please describe any relevant documentation references: