From 8f64ff6e5ce8bd349819f8fd499fc741a2ac1926 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Tue, 29 Apr 2025 06:42:35 +0300 Subject: Reducing leaks --- c_implementation/src/ak_fs.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'c_implementation/src/ak_fs.c') 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); -- cgit v1.2.3