Create an in-memory copy of a submodule. The copy must be explicitly free'd or it will leak.
Pointer to store the copy of the submodule.
Original submodule to copy.