aboutsummaryrefslogtreecommitdiff
path: root/c/main.c
diff options
context:
space:
mode:
authorJack O'Connor <[email protected]>2020-01-21 14:04:59 -0500
committerJack O'Connor <[email protected]>2020-01-22 21:32:39 -0500
commit163f52245d3f6cfcc2ec2c91e01412ffba5f6d45 (patch)
tree91937cc6aba2bb9d63b83b4d82b431fb9f9b9446 /c/main.c
parentde1cf0038e26b8371408b4cb8b7fc6b4a47659df (diff)
port compress_subtree_to_parent_node from Rust to C
This recursive function performs parallel parent node hashing, which is an important optimization.
Diffstat (limited to 'c/main.c')
-rw-r--r--c/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/c/main.c b/c/main.c
index 8638303..9ef7bce 100644
--- a/c/main.c
+++ b/c/main.c
@@ -157,5 +157,6 @@ int main(int argc, char **argv) {
free(out);
feature = (feature - mask) & mask;
} while (feature != 0);
+ free(buf);
return 0;
}