I had a friend run regrtest -L on Mac OSX a while ago. There are
several memory leaks which still appear to be an issue. There are a
bunch of leaks reported from putenv which I'm not sure how to fix
The attached patch should correct one of the problems. Can someone
with a Mac test it? I'll add to SF later if I don't get a response.
n
--
I'm not sure about how to fix these or if they are real problems:
Leak: 0x02541470 size=368 instance of 'NSCFData'
Call stack: call_function | ici_ICFindPrefHandle | ICFindPrefHandle |
OpaqueICInstance::FindPrefHandle(ICKeyInfo const&, unsigned long*,
char**) | OpaqueICInstance::GetPref(ICKeyInfo const&, long, void*,
long*, unsigned long*) | OpaqueICInstance::GetPrefCore(ICKeyInfo
const&, long, void*, long*, unsigned long*) |
OpaqueICInstance::LazyLoad() | ICCFPrefWrapper::ContainsPrefs() |
ICCFPrefWrapper::GetPrefDictionary() | fetchXMLValue |
_loadXMLDomainIfStale | _CFPropertyListCreateFromXMLData |
__CFTryParseBinaryPlist | __CFBinaryPlistCreateObject |
__CFBinaryPlistCreateObject | __CFBinaryPlistCreateObject |
__CFBinaryPlistCreateObject | __CFBinaryPlistCreateObject |
__CFDataInit | _CFRuntimeCreateInstance | CFAllocatorAllocate
Leak: 0x02506640 size=256
Call stack: call_function | do_call | PyObject_Call | parser_st2tuple
| node2tuple | node2tuple | node2tuple | node2tuple | node2tuple |
node2tuple | node2tuple | node2tuple | node2tuple | node2tuple |
node2tuple | node2tuple | node2tuple | node2tuple | node2tuple |
node2tuple | node2tuple | node2tuple | node2tuple | node2tuple |
node2tuple | PyTuple_New | _PyObject_GC_NewVar | _PyObject_GC_Malloc |
PyObject_Malloc | new_arena
Leak: 0x0118ad10 size=80
Call stack: call_function | AE_AECreateDesc | AECreateDesc | operator
new(unsigned long)
Index: Mac/Modules/file/_Filemodule.c
===================================================================
--- Mac/Modules/file/_Filemodule.c (revision 41886)
+++ Mac/Modules/file/_Filemodule.c (working copy)
@@ -3204,11 +3204,10 @@
char *path = NULL;
if (!PyArg_Parse(v, "et", Py_FileSystemDefaultEncoding, &path))
return 0;
- if ( (err=FSPathMakeRef(path, fsr, NULL)) ) {
+ if ( (err=FSPathMakeRef(path, fsr, NULL)) )
PyMac_Error(err);
- return 0;
- }
- return 1;
+ PyMem_Free(path);
+ return !err;
}
/* XXXX Should try unicode here too */
/* Otherwise we try to go via an FSSpec */
_______________________________________________
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com