Olaf Meeuwissen wrote:
Hi Olaf,
> Just noticed that scanimage leaks buffer_size bytes per scan when used
> in batch mode. By default, that's 32 kb. When using the buffer-size
> option it's 1Mb or whatever size you passed.
Applied, thanks. Good catch :)
JB.
--
Julien BLACHE
Hi all,
Just noticed that scanimage leaks buffer_size bytes per scan when used
in batch mode. By default, that's 32 kb. When using the buffer-size
option it's 1Mb or whatever size you passed.
Patch is attached. It moves the memory allocation out of scan_it() and
into main(), just before where