[issue21175] Refcounting error in str.translate fastpath
Josh Rosenberg
report at bugs.python.org
Tue Apr 8 01:10:56 CEST 2014
New submission from Josh Rosenberg:
Py_None is not being properly decref-ed in the str.translate fast path. I've attached a simple patch that fixes this (also corrects some comments and types in the same function).
No idea is Py_None ref leaks are considered a serious problem, but I figure it's better to be safe than sorry.
----------
files: fix_translate_none.patch
keywords: patch
messages: 215718
nosy: haypo, josh.rosenberg
priority: normal
severity: normal
status: open
title: Refcounting error in str.translate fastpath
type: behavior
versions: Python 3.4, Python 3.5
Added file: http://bugs.python.org/file34752/fix_translate_none.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21175>
_______________________________________
More information about the Python-bugs-list
mailing list