svn rev #24084: trunk/src/kadmin/dbutil/

ghudson@MIT.EDU ghudson at MIT.EDU
Fri May 21 15:23:21 EDT 2010


http://src.mit.edu/fisheye/changelog/krb5/?cs=24084
Commit By: ghudson
Log Message:
Fix an error case in kdb_util's dump.c where the dump file handle was
leaked.



Changed Files:
U   trunk/src/kadmin/dbutil/dump.c
Modified: trunk/src/kadmin/dbutil/dump.c
===================================================================
--- trunk/src/kadmin/dbutil/dump.c	2010-05-21 19:15:20 UTC (rev 24083)
+++ trunk/src/kadmin/dbutil/dump.c	2010-05-21 19:23:21 UTC (rev 24084)
@@ -1271,6 +1271,7 @@
                                    KRB5_LOCKMODE_EXCLUSIVE))) {
             fprintf(stderr, oflock_error,
                     progname, ofile, error_message(kret));
+            fclose(f);
             exit_status++;
         }
         else




More information about the cvs-krb5 mailing list