The "s" is not deallocated before returning s2. https://github.com/Valeh2012/PersonalVotingMachine/blob/26b0ba5954600092549ec95f5f6a76fd72754028/basic-setup/main/converter.cpp#L120