iUse free_snap() instead of 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 6c3de1be215d063566c45bb412301088abf18add /scm/dedup/commit/6c3de1be215d063566c45bb412301088abf18add.gph bitreich.org 70 1parent f7ee3e913fb4a27319ddb1bef266e79933f40c70 /scm/dedup/commit/f7ee3e913fb4a27319ddb1bef266e79933f40c70.gph bitreich.org 70 hAuthor: sin URL:mailto:sin@2f30.org bitreich.org 70 iDate: Wed, 17 Apr 2019 16:13:59 +0100 Err bitreich.org 70 i Err bitreich.org 70 iUse free_snap() instead of 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@@ -429,7 +429,7 @@ walk_snap(int (*fn)(struct snap *, void *), void *arg) Err bitreich.org 70 i read_snap_descs(ifd, snap); Err bitreich.org 70 i Err bitreich.org 70 i ret = (*fn)(snap, arg); Err bitreich.org 70 i- free(snap); Err bitreich.org 70 i+ free_snap(snap); Err bitreich.org 70 i if (ret == WALK_STOP) Err bitreich.org 70 i break; Err bitreich.org 70 i } Err bitreich.org 70 .