mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-01-31 09:24:07 +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");
|
||||
if (decimal) {
|
||||
decimalType = PyObject_GetAttrString(decimal, "Decimal");
|
||||
Py_DECREF(decimal);
|
||||
}
|
||||
else {
|
||||
PyErr_Clear();
|
||||
|
|
Loading…
Reference in New Issue
Block a user