Staging
v0.5.1
https://github.com/python/cpython
Revision 106c1df736d38f5b411a8571b97275d0ecf1d0a9 authored by Miss Islington (bot) on 04 September 2020, 22:56:04 UTC, committed by GitHub on 04 September 2020, 22:56:04 UTC

Free the stack allocated in va_build_stack if do_mkstack fails
and the stack is not a small_stack
(cherry picked from commit 75c80b0bda89debf312f075716b8c467d411f90e)

Co-authored-by: Tony Solomonik <tony.solomonik@gmail.com>
1 parent 8ed1c17
Raw File
Tip revision: 106c1df736d38f5b411a8571b97275d0ecf1d0a9 authored by Miss Islington (bot) on 04 September 2020, 22:56:04 UTC
closes bpo-41533: Fix a potential memory leak when allocating a stack (GH-21847)
Tip revision: 106c1df
traceback.h
#ifndef Py_TRACEBACK_H
#define Py_TRACEBACK_H
#ifdef __cplusplus
extern "C" {
#endif

/* Traceback interface */

PyAPI_FUNC(int) PyTraceBack_Here(PyFrameObject *);
PyAPI_FUNC(int) PyTraceBack_Print(PyObject *, PyObject *);

/* Reveal traceback type so we can typecheck traceback objects */
PyAPI_DATA(PyTypeObject) PyTraceBack_Type;
#define PyTraceBack_Check(v) Py_IS_TYPE(v, &PyTraceBack_Type)


#ifndef Py_LIMITED_API
#  define Py_CPYTHON_TRACEBACK_H
#  include  "cpython/traceback.h"
#  undef Py_CPYTHON_TRACEBACK_H
#endif

#ifdef __cplusplus
}
#endif
#endif /* !Py_TRACEBACK_H */
back to top