Allocate entry out of loop so we don't hit a bogus free - dedup - deduplicating backup program
 (HTM) git clone git://bitreich.org/dedup/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/dedup/
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) Tags
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 32c20d64995844daaaed9c9a11afc03ae68c7753
 (DIR) parent 39f907c919176a8fed990e10e95a7f7371aedf40
 (HTM) Author: sin <sin@2f30.org>
       Date:   Sun, 17 Feb 2019 12:10:35 +0000
       
       Allocate entry out of loop so we don't hit a bogus free
       
       Diffstat:
         M dedup.c                             |       2 +-
       
       1 file changed, 1 insertion(+), 1 deletion(-)
       ---
 (DIR) diff --git a/dedup.c b/dedup.c
       @@ -550,9 +550,9 @@ walk(int (*fn)(struct ent *, void *), void *arg)
                struct ent *ent;
                uint64_t i;
        
       +        ent = alloc_ent();
                lseek(ifd, sizeof(enthdr), SEEK_SET);
                for (i = 0; i < enthdr.nents; i++) {
       -                ent = alloc_ent();
                        if (xread(ifd, ent, sizeof(*ent)) == 0)
                                errx(1, "read: unexpected EOF");