Something went wrong. Try again.
A fork of https://github.com/crosspoint-reader/crosspoint-reader
Something went wrong. Try again.
fix: two small memory leaks (#1628) master
## Summary * **What is the goal of this PR?** Fix two issues pointed out by `CodeRabbit` in #1433: 1. Free the output buffer in `readFileToMemory` on early error paths (prevents memory leaks). 2. Check `out.write()` return value in the STORED path (same as in the DEFLATED path). I can confirm both issues were real (not hallucinations). Both fixes are minimal — no behavior change on success. --- ### AI Usage Did you use AI tools to help write this code? _**< NO >**_
Author Uri Tauber Committer GitHub Date (Apr 9, 2026, 7:16 PM UTC) Commit 104f391a 104f391a29d11d504fc4d990eb135fda72eadb04 Parent b3b43bb3 b3b43bb3738ab23b14ca9ca881c037050e1107de