| 33 | #include <sstream> |
| 34 | |
| 35 | void |
| 36 | pycbc::txns::dealloc_transactions(PyObject* obj) |
| 37 | { |
| 38 | auto txns = reinterpret_cast<pycbc::txns::transactions*>(PyCapsule_GetPointer(obj, "txns_")); |
| 39 | txns->txns->close(); |
| 40 | txns->txns.reset(); |
| 41 | CB_LOG_DEBUG("dealloc transactions"); |
| 42 | } |
| 43 | |
| 44 | void |
| 45 | pycbc::txns::dealloc_transaction_context(PyObject* obj) |