In article <[email protected]>,
k3xji  <[email protected]> wrote:
>
>When I run the following function, I seem to have a mem leak, a 20 mb
>of memory
>is allocated and is not freed. Here is the code I run:
>
>>>> import esauth
>>>> for i in range(1000000):
>
>...     ss = esauth.penc('sumer')
>...
>>>> for i in range(1000000):
>
>...     ss = esauth.penc('sumer')
>...

BTW, note that if you're using Python 2.x, range(1000000) will cause a
"leak" because ints are never freed.  Instead, use xrange().
-- 
Aahz ([email protected])           <*>         http://www.pythoncraft.com/

Why is this newsgroup different from all other newsgroups?
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to