fstrace-fix-memory-leak-20020325

avoid leaking catalog reference on failure
This commit is contained in:
Nathan Neulinger 2002-03-25 18:35:07 +00:00 committed by Derrick Brashear
parent 13f864f21e
commit 1ad668aee2

View File

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