pr-initialize-dont-leak-ref-20041009
authorDerrick Brashear <shadow@dementia.org>
Sun, 10 Oct 2004 03:03:11 +0000 (03:03 +0000)
committerDerrick Brashear <shadow@dementia.org>
Sun, 10 Oct 2004 03:03:11 +0000 (03:03 +0000)
we were leaking an afsconf_Open ref. let's not.

src/ptserver/ptuser.c

index df297b5..690d7c4 100644 (file)
@@ -86,6 +86,8 @@ pr_Initialize(IN afs_int32 secLevel, IN char *confDir, IN char *cell)
        /*
         * Different conf dir; force re-evaluation.
         */
+       if (tdir) 
+           afsconf_Close(tdir);
        tdir = (struct afsconf_dir *)0;
        pruclient = (struct ubik_client *)0;
     }