diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2025-04-29 06:42:35 +0300 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2025-04-29 19:31:29 +0300 |
commit | 8f64ff6e5ce8bd349819f8fd499fc741a2ac1926 (patch) | |
tree | 20138add5ee35c77e4370a042c78244e160a1672 /c_implementation/src/ak_fs.c | |
parent | 1d10339904b31f58d7461c0b806f842609571d92 (diff) | |
download | arching-kaos-tools-8f64ff6e5ce8bd349819f8fd499fc741a2ac1926.tar.gz arching-kaos-tools-8f64ff6e5ce8bd349819f8fd499fc741a2ac1926.tar.bz2 arching-kaos-tools-8f64ff6e5ce8bd349819f8fd499fc741a2ac1926.zip |
Reducing leaks
Diffstat (limited to 'c_implementation/src/ak_fs.c')
-rw-r--r-- | c_implementation/src/ak_fs.c | 2 |
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); |