Whenever you exit Python, is all memory de-allocated? Technology Community › Category: Python › Whenever you exit Python, is all memory de-allocated? 0 Vote Up Vote Down VietMX Staff asked 4 years ago The answer here is no. The modules with circular references to other objects, or to objects referenced from global namespaces, aren’t always freed on exiting Python. Plus, it is impossible to de-allocate portions of memory reserved by the C library.