diff options
author | Marc-André Lemburg <mal@egenix.com> | 2002-05-29 13:46:29 +0000 |
---|---|---|
committer | Marc-André Lemburg <mal@egenix.com> | 2002-05-29 13:46:29 +0000 |
commit | 41644392407eadb07dd09a08e5d316c4edf3fcbb (patch) | |
tree | 1d4c397f1d3d9199fca938b89e6ac7f5ff0f62e1 /Objects/unicodeobject.c | |
parent | 4da6fd63bc431468e9622341ac410c55a54c7b9b (diff) | |
download | cpython-git-41644392407eadb07dd09a08e5d316c4edf3fcbb.tar.gz |
Fix a possible segfault. Found be Neal Norvitz.
Diffstat (limited to 'Objects/unicodeobject.c')
-rw-r--r-- | Objects/unicodeobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index e24453d17d..2cb97bcf09 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -2890,7 +2890,7 @@ int PyUnicode_Find(PyObject *str, return -2; substr = PyUnicode_FromObject(substr); if (substr == NULL) { - Py_DECREF(substr); + Py_DECREF(str); return -2; } |