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