aboutsummaryrefslogtreecommitdiff
path: root/c_implementation/src/ak_fs.c
diff options
context:
space:
mode:
Diffstat (limited to 'c_implementation/src/ak_fs.c')
-rw-r--r--c_implementation/src/ak_fs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/c_implementation/src/ak_fs.c b/c_implementation/src/ak_fs.c
index 1a9e821..07178bc 100644
--- a/c_implementation/src/ak_fs.c
+++ b/c_implementation/src/ak_fs.c
@@ -340,6 +340,8 @@ int ak_fs_cat_file_from_root_hash(sha512sum* rh)
h_str[128] = '\0';
memcpy(t_str, buffer + 129, 128);
t_str[128] = '\0';
+ fclose(fd);
+ // free(fullpath);
ak_fs_sha512sum_string_to_struct(h_str, &h0.head);
ak_fs_sha512sum_string_to_struct(t_str, &h0.tail);
ak_fs_cat_file_from_root_hash(&h0.head);