2
3
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-14 02:27:40 -04:00

Fix vaultOperation Python object leak.

This fixes a leak of a Python bound method. Leaking this means that
PythonFileMods keys are still loaded when the client exits. These
methods are most commonly used by xSimpleImager.py, so the effect of the
leak can be observed by simply linking to Relto and quitting with a leak
detector active.
This commit is contained in:
2021-10-17 14:56:50 -04:00
committed by rarified
parent 542711c7c0
commit fc79b5f45a

View File

@ -123,6 +123,8 @@ void pyVaultNode::pyVaultNodeOperationCallback::VaultOperationStarted( UInt32 co
PyObject* retVal = PyObject_CallMethod(fCbObject, "vaultOperationStarted", "l", context); PyObject* retVal = PyObject_CallMethod(fCbObject, "vaultOperationStarted", "l", context);
Py_XDECREF(retVal); Py_XDECREF(retVal);
} }
Py_DECREF(func);
} }
} }
} }
@ -150,6 +152,8 @@ void pyVaultNode::pyVaultNodeOperationCallback::VaultOperationComplete( UInt32 c
Py_XDECREF(retVal); Py_XDECREF(retVal);
Py_DECREF(t); Py_DECREF(t);
} }
Py_DECREF(func);
} }
} }
} }