diff options
author | Gerhard Häring <gh@ghaering.de> | 2008-03-29 14:11:55 (GMT) |
---|---|---|
committer | Gerhard Häring <gh@ghaering.de> | 2008-03-29 14:11:55 (GMT) |
commit | e871ad59cf7cfa0cba173bf31e22a850f5ea9e18 (patch) | |
tree | 2f79722afca0b9a305a7aa3e41615e51f08dc003 /Modules | |
parent | ca67412f282c8e821b27097aa812f582e6f2b13f (diff) | |
download | cpython-e871ad59cf7cfa0cba173bf31e22a850f5ea9e18.zip cpython-e871ad59cf7cfa0cba173bf31e22a850f5ea9e18.tar.gz cpython-e871ad59cf7cfa0cba173bf31e22a850f5ea9e18.tar.bz2 |
Moved DECREF to correct place to get rid of leaked references.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_sqlite/cursor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_sqlite/cursor.c b/Modules/_sqlite/cursor.c index 7fd7db3..8efa812 100644 --- a/Modules/_sqlite/cursor.c +++ b/Modules/_sqlite/cursor.c @@ -355,9 +355,9 @@ PyObject* _pysqlite_fetch_one_row(pysqlite_Cursor* self) error_obj = PyUnicode_FromEncodedObject(buf_bytes, "ascii", "replace"); if (!error_obj) { PyErr_SetString(pysqlite_OperationalError, "Could not decode to UTF-8"); - Py_DECREF(error_obj); } else { PyErr_SetObject(pysqlite_OperationalError, error_obj); + Py_DECREF(error_obj); } Py_DECREF(buf_bytes); } |