Uploaded image for project: 'Couchbase Python Client Library'
  1. Couchbase Python Client Library
  2. PYCBC-1382

Custom Python types should call tp_free in their destructor

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 4.0.3
    • 4.0.0, 4.0.1, 4.0.2
    • None
    • None
    • 1

    Description

      Currently the SDK does a good job at decrementing (when necessary) reference counts appropriately within a custom type's destructor. However, we also need to free the object' memory at the end of the destructor using the tp_free() method (typically: Py_TYPE(self)->tp_free((PyObject *) self);).

      Types to update:

      • result
      • mutation_token
      • streamed_result
      • transaction_get_result
      • transaction_query_options
      • transaction_config
      • per_transaction_config

      Attachments

        Issue Links

          Activity

            People

              jared.casey Jared Casey
              jared.casey Jared Casey
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                PagerDuty