Fixed three leaks, discovered during valgrind harness tests
Merge pull request #23 from telefonicaid/bug/harness_leak

Memory leaks