[sane-devel] [patch] scanimage leaks memory in batch mode

2011-06-30 Thread Julien BLACHE
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

[sane-devel] [patch] scanimage leaks memory in batch mode

2011-06-30 Thread Olaf Meeuwissen
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