0

for my class we use Python on Linux machines. We went over one way of demonstrating a memory leak in class by opening a file, writing in it, closing it, and using the gc get_objects method to count before and after closing the file. I need to demonstrate a memory leak in a different way but am unsure how to do that. Can anyone show me some examples or ways to go about this? Thanks!

0 Answers0