]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Fix the refleak from test_unicode.
authorNeal Norwitz <nnorwitz@gmail.com>
Tue, 28 Mar 2006 06:05:21 +0000 (06:05 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Tue, 28 Mar 2006 06:05:21 +0000 (06:05 +0000)
commit55dd2b41e0295526e5a91c37231de00af6fd29d8
treea12160921d92b078730411631deecc4b513ba50d
parentadbd28f7b80c31918fb241ca2e3bfb92563f8945
Fix the refleak from test_unicode.
Backport 42973 (lots of whitespace changes intermixed):

 - Reindent a confusingly indented piece of code (no intended code changes
    there)
 - Add missing DECREFs of inner-scope 'temp' variable
 - Add various missing DECREFs by changing 'return NULL' into 'goto onError'
 - Avoid double DECREF when last _PyUnicode_Resize() fails

Coverity found one of the missing DECREFs, but oddly enough not the others.
Objects/unicodeobject.c