Mercurial > cpython-lru_cache-weakref
diff Objects/unicodeobject.c @ 64666:852bb052156a
Issue #9738, #9836: Fix refleak introduced by r84704
| author | Victor Stinner <victor.stinner@haypocalc.com> |
|---|---|
| date | Sun, 12 Sep 2010 07:51:18 +0000 |
| parents | c35b42a8da3f |
| children | b7e244f34cc8 |
line wrap: on
line diff
--- a/Objects/unicodeobject.c Sun Sep 12 05:15:22 2010 +0000 +++ b/Objects/unicodeobject.c Sun Sep 12 07:51:18 2010 +0000 @@ -767,9 +767,9 @@ 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
