Memory safety for Config.cpp