Solved all remaining memory leaks from service_config.