[issue15900] Memory leak in PyUnicode_TranslateCharmap()

2012-09-23 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 89f62f143920 by Christian Heimes in branch 'default':
Issue #15900: Fixed reference leak in PyUnicode_TranslateCharmap()
http://hg.python.org/cpython/rev/89f62f143920

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15900
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15900] Memory leak in PyUnicode_TranslateCharmap()

2012-09-22 Thread Georg Brandl

Georg Brandl added the comment:

Done as 89f62f143920.

--
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15900
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15900] Memory leak in PyUnicode_TranslateCharmap()

2012-09-11 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 4f2811e5e462 by Christian Heimes in branch 'default':
Issue #15900: Fixed reference leak in PyUnicode_TranslateCharmap()
http://hg.python.org/cpython/rev/4f2811e5e462

--
nosy: +python-dev

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15900
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15900] Memory leak in PyUnicode_TranslateCharmap()

2012-09-11 Thread Christian Heimes

Christian Heimes added the comment:

Yes, 3.2 and earlier are not affected.

Georg, I'm assigning the bug to you so you can decide if you like to cherry 
pick the fix.

--
assignee:  - georg.brandl
nosy: +georg.brandl
resolution:  - fixed
stage:  - committed/rejected

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15900
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15900] Memory leak in PyUnicode_TranslateCharmap()

2012-09-10 Thread Christian Heimes

New submission from Christian Heimes:

Objects/unicodeobject.c:PyUnicode_TranslateCharmap() leaks a reference to the 
variable unicode. PyUnicode_Translate() is also implemented around the helper 
function _PyUnicode_TranslateCharmap() but it properly decrefs the reference to 
the first argument.

PyUnicode_Translate() also has an obsolete onError goto label. The patch fixes 
the leak and simplifies PyUnicode_Translate().

CID 719686

--
components: Interpreter Core
files: translate_leak.patch
keywords: 3.3regression, patch
messages: 170170
nosy: christian.heimes
priority: normal
severity: normal
status: open
title: Memory leak in PyUnicode_TranslateCharmap()
type: resource usage
versions: Python 3.3, Python 3.4
Added file: http://bugs.python.org/file27164/translate_leak.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15900
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15900] Memory leak in PyUnicode_TranslateCharmap()

2012-09-10 Thread Jesús Cea Avión

Jesús Cea Avión added the comment:

Looks good to me. Are 2.7/3.2 not affected?.

Christian, Please, commit the patch and notify Georg for 3.3.0 inclusion.

--
nosy: +jcea

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15900
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com