Fix memory leak in submodule.c