projects
/
zchunk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c74ff02
)
Fix memory leak
author
Jonathan Dieter
<jdieter@gmail.com>
Sat, 12 Mar 2022 16:48:28 +0000
(16:48 +0000)
committer
Jonathan Dieter
<jdieter@gmail.com>
Sat, 12 Mar 2022 16:48:28 +0000
(16:48 +0000)
In the index, we were leaking the uncompressed digest, so this commit fixes
that.
Signed-off-by: Jonathan Dieter <jdieter@gmail.com>
src/lib/index/index_common.c
patch
|
blob
|
history
diff --git
a/src/lib/index/index_common.c
b/src/lib/index/index_common.c
index 28bb267a433d77ea5ee2fde680eee8b984679bb4..6774495e6e864f23490f0c5c424028a4617d5406 100644
(file)
--- a/
src/lib/index/index_common.c
+++ b/
src/lib/index/index_common.c
@@
-38,6
+38,8
@@
static void index_free_item(zckChunk **item) {
if((*item)->digest)
free((*item)->digest);
+ if((*item)->digest_uncompressed)
+ free((*item)->digest_uncompressed);
free(*item);
*item = NULL;
return;