Adam Megacz wrote:
> cvs diff: Diffing src/afsd
> Index: src/afsd/afsd.c
> ===================================================================
> RCS file: /cvs/openafs/src/afsd/afsd.c,v
> retrieving revision 1.43.2.18
> diff -B -u -b -r1.43.2.18 afsd.c
> --- src/afsd/afsd.c     21 Aug 2006 20:39:40 -0000      1.43.2.18
> +++ src/afsd/afsd.c     26 Dec 2006 09:10:03 -0000
> @@ -1248,6 +1248,11 @@
>      acellName[0] = '\0';
>  
>      while (1) {
> +#ifdef AFS_DARWIN_ENV
> +      /* libresolv only reads /etc/resolv.conf when this is invoked */
> +      res_init();
> +#endif
> +
>         /* On some platforms you only get 4 args to an AFS call */
>         int sizeArg = ((sizeof acellName) << 16) | (sizeof kernelMsg);
>         code =

Will calling res_init() multiple times leak resources on MacOS/Darwin?

Is there a cleanup function that should be called first?

Jeffrey Altman





Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to