mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-02-07 12:50:32 +03:00
Added missing DECREF.
This commit is contained in:
parent
c71b7a03d0
commit
63773ad1e0
|
@ -565,6 +565,7 @@ psyco_decimal_init(void)
|
||||||
PyObject *decimal = PyImport_ImportModule("decimal");
|
PyObject *decimal = PyImport_ImportModule("decimal");
|
||||||
if (decimal) {
|
if (decimal) {
|
||||||
decimalType = PyObject_GetAttrString(decimal, "Decimal");
|
decimalType = PyObject_GetAttrString(decimal, "Decimal");
|
||||||
|
Py_DECREF(decimal);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
PyErr_Clear();
|
PyErr_Clear();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user