diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2010-09-12 07:51:18 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2010-09-12 07:51:18 (GMT) |
commit | 4c7db315df75bdd014041b12122a34cf9f034754 (patch) | |
tree | 34715c568becf034f3078f9c6b9a3b27e64df156 /Objects/unicodeobject.c | |
parent | dc08a143e00d60aa0ce6ee946ad343b9ec2f80da (diff) | |
download | cpython-4c7db315df75bdd014041b12122a34cf9f034754.zip cpython-4c7db315df75bdd014041b12122a34cf9f034754.tar.gz cpython-4c7db315df75bdd014041b12122a34cf9f034754.tar.bz2 |
Issue #9738, #9836: Fix refleak introduced by r84704
Diffstat (limited to 'Objects/unicodeobject.c')
-rw-r--r-- | Objects/unicodeobject.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 3b0a66a..92df1ce 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -767,9 +767,9 @@ PyUnicode_FromFormatV(const char *format, va_list vargs) else if (128 <= (unsigned char)*f) { PyErr_Format(PyExc_ValueError, "PyUnicode_FromFormatV() expects an ASCII-encoded format " - "string, got a non-ascii byte: 0x%02x", + "string, got a non-ASCII byte: 0x%02x", (unsigned char)*f); - return NULL; + goto fail; } } /* step 2: allocate memory for the results of |