Refixed two leaks
Merge pull request #196 from telefonicaid/hardening/valgrind_again

Refixed two leaks