From afe7d5158171ecc98c3992d0ee487cd1a00b7615 Mon Sep 17 00:00:00 2001 From: Greg Hudson Date: Fri, 21 May 2010 19:23:21 +0000 Subject: [PATCH] Fix an error case in kdb_util's dump.c where the dump file handle was leaked. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24084 dc483132-0cff-0310-8789-dd5450dbe970 --- src/kadmin/dbutil/dump.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/kadmin/dbutil/dump.c b/src/kadmin/dbutil/dump.c index 99ca0b438..78331932f 100644 --- a/src/kadmin/dbutil/dump.c +++ b/src/kadmin/dbutil/dump.c @@ -1271,6 +1271,7 @@ dump_db(argc, argv) KRB5_LOCKMODE_EXCLUSIVE))) { fprintf(stderr, oflock_error, progname, ofile, error_message(kret)); + fclose(f); exit_status++; } else -- 2.26.2