summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--rpmmodule/rpmmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rpmmodule/rpmmodule.c b/rpmmodule/rpmmodule.c
index 6547ede23..4604c74ec 100644
--- a/rpmmodule/rpmmodule.c
+++ b/rpmmodule/rpmmodule.c
@@ -830,7 +830,7 @@ static PyObject * rpmtransCreate(PyObject * self, PyObject * args) {
o = (void *) PyObject_NEW(rpmtransObject, &rpmtransType);
- Py_INCREF(db);
+ Py_XINCREF(db);
o->dbo = db;
o->scriptFd = NULL;
o->ts = rpmtransCreateSet(db ? db->db : NULL, rootPath);