diff options
Diffstat (limited to 'c_implementation/src/ak_fs.c')
-rw-r--r-- | c_implementation/src/ak_fs.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/c_implementation/src/ak_fs.c b/c_implementation/src/ak_fs.c index 5643276..1a9e821 100644 --- a/c_implementation/src/ak_fs.c +++ b/c_implementation/src/ak_fs.c @@ -319,11 +319,14 @@ int ak_fs_cat_file_from_root_hash(sha512sum* rh) { ak_log_error(__func__, "File is smaller than expected. Wrong format?"); fclose(fd); + free(fullpath); return 2; } if ( buffer[128] != '\n' || buffer[257] != '\n' ) { ak_log_error(__func__, "Unknown format"); + fclose(fd); + free(fullpath); return 2; } char h_str[129] = {0}; |