diff options
Diffstat (limited to 'Modules/cPickle.c')
-rw-r--r-- | Modules/cPickle.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/Modules/cPickle.c b/Modules/cPickle.c index 2ffba48..a6c5e9d 100644 --- a/Modules/cPickle.c +++ b/Modules/cPickle.c @@ -1252,14 +1252,8 @@ modified_EncodeRawUnicodeEscape(const Py_UNICODE *s, int size) *p++ = (char) ch; } *p = '\0'; - if (_PyString_Resize(&repr, p - q)) - goto onError; - + _PyString_Resize(&repr, p - q); return repr; - - onError: - Py_DECREF(repr); - return NULL; } |