artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d80561
)
Fix a memory leak
author
job
<job@openbsd.org>
Wed, 18 Sep 2024 10:22:36 +0000
(10:22 +0000)
committer
job
<job@openbsd.org>
Wed, 18 Sep 2024 10:22:36 +0000
(10:22 +0000)
Found by Martin Cracauer
"look right" tb@
usr.bin/rsync/blocks.c
patch
|
blob
|
history
diff --git
a/usr.bin/rsync/blocks.c
b/usr.bin/rsync/blocks.c
index
f76fb81
..
b300e41
100644
(file)
--- a/
usr.bin/rsync/blocks.c
+++ b/
usr.bin/rsync/blocks.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: blocks.c,v 1.2
3 2024/02/28 09:36:11 claudio
Exp $ */
+/* $OpenBSD: blocks.c,v 1.2
4 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);
}