New submission from Christian Heimes:

http://hg.python.org/cpython/file/a65856044ad4/Modules/_ctypes/_ctypes.c#l2673

Coverity analysis:

2672    } else { /* copy contents of adr */
2673        if (-1 == PyCData_MallocBuffer(cmem, dict)) {
2674            return NULL;
    
CID 715381: Structurally dead code (UNREACHABLE)unreachable: This code cannot 
be reached: "do {
PyObject *_py_decref...".
2675            Py_DECREF(cmem);
2676        }

----------
components: Extension Modules
files: frombaseobj.patch
keywords: patch
messages: 193406
nosy: christian.heimes
priority: low
severity: normal
stage: needs patch
status: open
title: Unreachable  Py_DECREF() in ctypes's PyCData_FromBaseObj()
type: resource usage
versions: Python 3.3, Python 3.4
Added file: http://bugs.python.org/file30989/frombaseobj.patch

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

Reply via email to