- trace_class, trace_class_destroyed_listener, py_callable, &id);
- if (status != __BT_FUNC_STATUS_OK) {
- BT_LOGF_STR("Failed to add trace class destruction listener.");
- abort();
+ trace_class, trace_class_destroyed_listener, py_callable, id);
+ if (status == __BT_FUNC_STATUS_OK) {
+ Py_INCREF(py_callable);