From 1ad668aee2c995e44974f89728b1d5e13470aec1 Mon Sep 17 00:00:00 2001 From: Nathan Neulinger Date: Mon, 25 Mar 2002 18:35:07 +0000 Subject: [PATCH] fstrace-fix-memory-leak-20020325 avoid leaking catalog reference on failure --- src/venus/fstrace.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/venus/fstrace.c b/src/venus/fstrace.c index 0cd73f69df..837c4962e8 100644 --- a/src/venus/fstrace.c +++ b/src/venus/fstrace.c @@ -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)",