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 <rep...@bugs.python.org>
<http://bugs.python.org/issue21175>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to