Commit 3602cd9d authored by JINMEI Tatuya's avatar JINMEI Tatuya
Browse files

[1574b] made sure Py_True/False gained refcount on return.

parent a2943fb1
......@@ -134,7 +134,9 @@ NSEC3Hash_match(PyObject* po_self, PyObject* args) {
const bool matched = self->cppobj->match(
dynamic_cast<const generic::NSEC3&>(
PyRdata_ToRdata(po_rdata)));
return (matched ? Py_True : Py_False);
PyObject* ret = matched ? Py_True : Py_False;
Py_INCREF(ret);
return (ret);
}
} catch (const exception& ex) {
const string ex_what = "Unexpected failure in NSEC3Hash.match: " +
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment