Hello,
I went through coverity issues and I've fixed some of them.
Could you please take a look at the attached patches?
Regards
Jakub