Fix an error case in kdb_util's dump.c where the dump file handle was
authorGreg Hudson <ghudson@mit.edu>
Fri, 21 May 2010 19:23:21 +0000 (19:23 +0000)
committerGreg Hudson <ghudson@mit.edu>
Fri, 21 May 2010 19:23:21 +0000 (19:23 +0000)
leaked.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24084 dc483132-0cff-0310-8789-dd5450dbe970

src/kadmin/dbutil/dump.c

index 99ca0b4386f753981ccd32ebc6b7df2c9e55ed54..78331932f44fb42afa357bc56f2d99967d8a5ca4 100644 (file)
@@ -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