New submission from Antoine Pitrou <pit...@free.fr>:

The PyErr_SetFromImportErrorWithNameAndPath implementation never checks for the 
various results returned by the C API functions it invokes.

(also, it needs documenting, see python-dev)

As for PyErr_SetExcWithArgsKwargs, there's a potential refleak when args is 
NULL.

----------
components: Interpreter Core
messages: 158411
nosy: brett.cannon, brian.curtin, pitrou
priority: normal
severity: normal
stage: needs patch
status: open
title: PyErr_SetFromImportErrorWithNameAndPath lacks error checking
type: resource usage
versions: Python 3.3

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue14593>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to