dedup

deduplicating backup program
git clone git://git.2f30.org/dedup.git
Log | Files | Refs | README | LICENSE

commit 7033c4f6f1f3be92781ded542ba67e5c1a1b0b27
parent ca6087f9ea02fe655dfb1db5ef4bbcb45528baa5
Author: sin <sin@2f30.org>
Date:   Thu, 16 May 2019 14:42:29 +0300

Free buf early

Diffstat:
Mblock.c | 8+++-----
1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/block.c b/block.c @@ -158,12 +158,10 @@ bcheck(struct bctx *bctx, unsigned char *md) return -1; } - if (memcmp(tmp, md, MDSIZE) != 0) { - free(buf); - return 1; - } - free(buf); + + if (memcmp(tmp, md, MDSIZE) != 0) + return 1; return 0; }