Releasing Module memory

After I’ve dumped a Module to disk, I’d like to delete all the memory needed for it. I’ve looked at the Module destructor, but I don’t see anything that looks like it’s deleting all the Functions, BasicBlocks, Instructions, Values that are attached to the Module.

What should I do to free up all the memory used while creating that Module?


Michael Smith