[issue18333] Memory leak in _pickle.c:Unpickler_set_memo()

2013-07-01 Thread Christian Heimes
Christian Heimes added the comment: After a good night sleep I realized it's a false positive. All gotos are inside the while block. The while block is only entered when PyDict_Size(obj) > 0. -- resolution: -> invalid status: open -> closed ___ Pyth

[issue18333] Memory leak in _pickle.c:Unpickler_set_memo()

2013-06-30 Thread Christian Heimes
New submission from Christian Heimes: Unpickler_set_memo() has a memory leak when it is called with an empty dictionariy as argument - PyDict_Check(obj) is true - PyDict_Size(obj) returns 0 - _Unpickler_NewMemo(new_memo_size) calls PyMem_MALLOC(0) - PyMem_MALLOC(0) returns a valid pointer altho