Merge pull request #502 from telefonicaid/hardening/sonar_memory_fixes

Sonar detected memory fixes
Merge pull request #508 from telefonicaid/bug/478_transactions

each send is considered a transaction (into develop)
Merge branch 'develop' into hardening/doc_improvement