…TDOUT) check. No memory leak. Reverts part of 1510f4a.
Discussion. The #define IS_FROM_FILE is always false. I removed all uses and replace with !STDIN which is what it is.
In lrzip.c there was a line that prohibited the creation of a temporary output buffer. The reason it was inserted was a supposed memory leak. My testing found no such leak. See #77 comments. When output is smaller than available memory, the entire decompression is speeded up by a factor of at least 2. If the decompressed output is larger than available ram, a file buffer is used instead and the alloced memory is properly released.
…TDOUT) check. No memory leak. Reverts part of 1510f4a.
Discussion. The #define IS_FROM_FILE is always false. I removed all uses and replace with !STDIN which is what it is. In lrzip.c there was a line that prohibited the creation of a temporary output buffer. The reason it was inserted was a supposed memory leak. My testing found no such leak. See #77 comments. When output is smaller than available memory, the entire decompression is speeded up by a factor of at least 2. If the decompressed output is larger than available ram, a file buffer is used instead and the alloced memory is properly released.
Suggest taking a close look at this.