summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorJob Snijders <job@cvs.openbsd.org>2024-09-18 10:22:37 +0000
committerJob Snijders <job@cvs.openbsd.org>2024-09-18 10:22:37 +0000
commit5db22c9fd3c0f8e807b2f95cec5c5a36b43ba188 (patch)
tree3402472610876f712da42f3c452e83117900324c /usr.bin
parent172d8c93eca1e1961a4e829e070a0eeeca5386b4 (diff)
Fix a memory leak
Found by Martin Cracauer "look right" tb@
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/rsync/blocks.c4
1 files 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 <kristaps@bsd.lv>
*
@@ -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);
}