fstrace-fix-memory-leak-20020325
authorNathan Neulinger <nneul@umr.edu>
Mon, 25 Mar 2002 18:35:07 +0000 (18:35 +0000)
committerDerrick Brashear <shadow@dementia.org>
Mon, 25 Mar 2002 18:35:07 +0000 (18:35 +0000)
avoid leaking catalog reference on failure

src/venus/fstrace.c

index 0cd73f6..837c496 100644 (file)
@@ -1596,6 +1596,11 @@ tryagain:
     {
        if (!failed) {
            failed = 1;
+#if defined(AFS_OSF_ENV) && !defined(AFS_OSF20_ENV)
+           catclose1 (catd);
+#else
+           catclose (catd);
+#endif
            goto tryagain;
        }
         sprintf ((char *) error_text, "status %08x (%s / %s)",