[pygobject] pygobject_register_version_tuples: fix a leak
- From: Christoph Reiter <creiter src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject] pygobject_register_version_tuples: fix a leak
- Date: Thu, 22 Mar 2018 22:11:39 +0000 (UTC)
commit 507e6a2824b5bde57e43c56c3178b5dac57506a1
Author: Christoph Reiter <reiter christoph gmail com>
Date: Thu Mar 22 20:23:10 2018 +0100
pygobject_register_version_tuples: fix a leak
gi/gimodule.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/gi/gimodule.c b/gi/gimodule.c
index dcdc89dd..ca52dad4 100644
--- a/gi/gimodule.c
+++ b/gi/gimodule.c
@@ -2373,6 +2373,7 @@ pygobject_register_version_tuples(PyObject *d)
PYGOBJECT_MINOR_VERSION,
PYGOBJECT_MICRO_VERSION);
PyDict_SetItemString(d, "pygobject_version", tuple);
+ Py_DECREF (tuple);
}
PYGLIB_MODULE_START(_gi, "_gi")
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]