hello world script causes memory leak My script generates about 400 objects. If I run the same script twice, I notice the object count remains the same, but the memory allocated does increase substantially.

I thought it was my code (and it may still be), but can someone explain why the following piece of code causes a small (but noticeable) memory leak?

This is after I hold both Alt+P (which runs the script) and I keep my eye on |Mem:11.12M| on top of the blender UI. It increases by .01M every ~5 seconds.

if __name__ == "__main__":
    print('hello')
This does not cause any memory leak. It simply adds entries into your Undo list, and depending on how many undo steps you have setup in preferences the Mem reading will cap out eventually and will not grow any further.