From a1cea6926c633a4ae68ba8eeb0312504e232784f Mon Sep 17 00:00:00 2001 From: job Date: Wed, 18 Sep 2024 10:22:36 +0000 Subject: [PATCH] Fix a memory leak Found by Martin Cracauer "look right" tb@ --- usr.bin/rsync/blocks.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.bin/rsync/blocks.c b/usr.bin/rsync/blocks.c index f76fb81b621..b300e41a04c 100644 --- a/usr.bin/rsync/blocks.c +++ b/usr.bin/rsync/blocks.c @@ -1,4 +1,4 @@ -/* $OpenBSD: blocks.c,v 1.23 2024/02/28 09:36:11 claudio Exp $ */ +/* $OpenBSD: blocks.c,v 1.24 2024/09/18 10:22:36 job Exp $ */ /* * Copyright (c) 2019 Kristaps Dzonsons * @@ -121,7 +121,7 @@ blkhash_set(struct blktab *p, const struct blkset *bset) void blkhash_free(struct blktab *p) { - + free(p->q); free(p->blks); free(p); } -- 2.20.1