diff options
author | Christian Heimes <christian@cheimes.de> | 2012-12-02 06:56:42 (GMT) |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2012-12-02 06:56:42 (GMT) |
commit | 5f7e8dab11cab6a19a454ee7d3567e5f61a4e43c (patch) | |
tree | 841cde0e17b543c492043708b2aae1bbc98afbd3 /Objects/stringlib | |
parent | 17ad40e46e2bae1ae12ddbf563f6a95e72d304af (diff) | |
download | cpython-5f7e8dab11cab6a19a454ee7d3567e5f61a4e43c.zip cpython-5f7e8dab11cab6a19a454ee7d3567e5f61a4e43c.tar.gz cpython-5f7e8dab11cab6a19a454ee7d3567e5f61a4e43c.tar.bz2 |
Issue #16592: stringlib_bytes_join doesn't raise MemoryError on allocation failure
Diffstat (limited to 'Objects/stringlib')
-rw-r--r-- | Objects/stringlib/join.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Objects/stringlib/join.h b/Objects/stringlib/join.h index d1d6e53..5568b31 100644 --- a/Objects/stringlib/join.h +++ b/Objects/stringlib/join.h @@ -43,6 +43,7 @@ STRINGLIB(bytes_join)(PyObject *sep, PyObject *iterable) buffers = PyMem_NEW(Py_buffer, seqlen); if (buffers == NULL) { Py_DECREF(seq); + PyErr_NoMemory(); return NULL; } } |