Skip to content

Commit

Permalink
Fix hashing memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
WiserTixx committed Jan 17, 2025
1 parent 6a2ee05 commit 4f2ef3c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/TResourceManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,8 @@ void TResourceManager::RefreshFiles() {
}
EVP_MD_CTX_free(mdctx);

stream.close();

std::string result;
for (size_t i = 0; i < sha256_len; i++) {
result += fmt::format("{:02x}", sha256_value[i]);
Expand Down

0 comments on commit 4f2ef3c

Please sign in to comment.