Mark Hammond mhammond at
Thu Feb 21 23:21:31 EST 2002

Spencer Ernest Doidge wrote:
> If I call win32file.AllocateReadBuffer(..) in a method that gets called
> repeatedly and terminates each time it is done, will I have a memory leak
> if I don't somehow free the allocated memory before concluding the run of
> the method? Or does the memory get de-allocated automagically when the
> method is finished running?

Normal Python reference counting semantics apply - ie, when there are no 
references to the buffer it will be deleted.  Thus, there should be no 


More information about the Python-list mailing list