Author: avos
Date: Thu Feb  7 14:40:28 2019
New Revision: 343871
URL: https://svnweb.freebsd.org/changeset/base/343871

Log:
  recoverdisk(1): fclose() file supplied via '-r readlist' parameter when
  it's no longer needed
  
  PR:           204952
  Reported by:  David Binderman <[email protected]>
  MFC after:    5 days

Modified:
  head/sbin/recoverdisk/recoverdisk.c

Modified: head/sbin/recoverdisk/recoverdisk.c
==============================================================================
--- head/sbin/recoverdisk/recoverdisk.c Thu Feb  7 14:29:45 2019        
(r343870)
+++ head/sbin/recoverdisk/recoverdisk.c Thu Feb  7 14:40:28 2019        
(r343871)
@@ -125,6 +125,7 @@ read_worklist(off_t t)
                new_lump(s, l, state);
                d -= l;
        }
+       fclose(file);
        (void)fprintf(stderr, " done.\n");
        /*
         * Return the number of bytes already read
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to