Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > interpreter Py_Initialize/Py_Finalize mem leak?

Reply
Thread Tools

interpreter Py_Initialize/Py_Finalize mem leak?

 
 
Roman Suzi
Guest
Posts: n/a
 
      01-08-2005

In pure curiosity I tried to compile loop.c from Demo/embed
and started it with 'print 2+2'. It seems, that both 2.3 and 2.4
pythons have memory leaks in Py_Initialize/Py_Finalize calls.
(That is, interpreter doesn't clean up well after itself).

This is my setup:

gcc -fpic loop.c -DHAVE_CONFIG_H -lm -lpython2.4 \
-lpthread -lutil -ldl \
-I/usr/local/include/python2.4 \
-L/usr/local/lib/python2.4/config \
-o looptest

(It's on Linux RedHat 7.3)

I do not know if this is of any importance though. Probably it is
for embedded Python uses.

Sincerely yours, Roman Suzi
--
=\= My AI powered by GNU/Linux RedHat 7.3
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
init of class members : mem(0) vs. mem() vs. not-init at all news.aon.at C++ 11 01-29-2011 07:30 PM
allocating mem in a function and assigning a ptr to the first byte of that mem array... mast2as@yahoo.com C Programming 8 03-01-2007 08:18 AM
Python embedded interpreter: how to initialize the interpreter ? ycollet@freesurf.fr Python 3 01-03-2007 01:00 AM
RE: interpreter Py_Initialize/Py_Finalize mem leak? Roman Suzi Python 0 01-10-2005 08:28 AM
PIX 515-6.3.3 high mem usage Ward Cisco 2 02-03-2004 04:46 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57