[sane-devel] Trouble with sanei_usb change (commit ef5820ce6238469b9946b37e21ec5355edfa520a)

Stef stef.dev at free.fr
Wed Feb 27 21:10:40 UTC 2013

On 27/02/2013 21:59, Stef wrote:
> Hello,
>     the ef5820ce6238469b9946b37e21ec5355edfa520a commit is causing me 
> troubles.
> Should we free devname on close ? We can open/close several times the 
> same device, so I think freeing in sanei_usb_close is problematic. 
> Reverting this change restored functionality to my backend.
> Regards,
>     Stef
     After further looking at this issue, I think we should add a 
sanei_usb_exit() function to take care of allocated resources ins 
sanei_usb_init(). Another case we can free memory is when the device is 
marked missing (missing field reaching 0).


More information about the sane-devel mailing list