Fix memory bugs valgrind
This branch fixes several memory leaks and also use of not initialized data.
A causa di un intervento di manutenzione il servizio non sarà disponibile il 17/05 dalle 08:30 alle 18:30 (CEST) - The Gitlab service will not be available on May 17th from 08:30 to 18:30 (CEST)
This branch fixes several memory leaks and also use of not initialized data.