Fixes from valgrind
Description
Fixed several memory leaks and use of uninitialized variables detected by valgrind.
News snippet
Fixed several memory leaks and use of uninitialized variables detected by valgrind.
Checklist
-
I have checked that my code follows the Octopus coding standards -
I have added tests for all the new features added in this request.
Edited by Micael Oliveira