]> granicus.if.org Git - python/commit
string_join(): Some cleaning up of reference counting. In the
authorBarry Warsaw <barry@python.org>
Tue, 11 Jul 2000 04:58:12 +0000 (04:58 +0000)
committerBarry Warsaw <barry@python.org>
Tue, 11 Jul 2000 04:58:12 +0000 (04:58 +0000)
commit771d0675b6fc08f2744c71cc66664d4ea4b22271
treef1c1edcad8a33c8b4b078b35f6b8c6b090e58c01
parent20f41b64563283467529dd1a001afafebf10d939
string_join(): Some cleaning up of reference counting.  In the
seqlen==1 clause, before returning item, we need to DECREF seq.  In
the res=PyString... failure clause, we need to goto finally to also
decref seq (and the DECREF of res in finally is changed to a
XDECREF).  Also, we need to DECREF seq just before the
PyUnicode_Join() return.
Objects/stringobject.c