submodule-config: avoid memory leak