| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
* Replace PyWeakref_GET_OBJECT() with _PyWeakref_GET_REF(). * _sqlite/blob.c now holds a strong reference to the blob object while calling close_blob(). * _xidregistry_find_type() now holds a strong reference to registered while using it.
| PyObject *blob = PyWeakref_GetObject(weakref); | ||
| if (!Py_IsNone(blob)) { | ||
| close_blob((pysqlite_Blob *)blob); | ||
| PyObject *blob = _PyWeakref_GET_REF(weakref); |
There was a problem hiding this comment.
Ideally, we should use public API only in the sqlite3 extension module.
Sorry, something went wrong.
There was a problem hiding this comment.
I hesitated to use PyWeakref_GetRef() but pysqlite_close_all_blobs() cannot report errors (return type is void), and I hesitated to use PyErr_WriteUnraisable().
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.