summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 88ad924)
raw | patch | inline | side by side (parent: 88ad924)
author | Sven Trenkel <collectd@semidefinite.de> | |
Mon, 15 Aug 2016 18:51:25 +0000 (18:51 +0000) | ||
committer | Sven Trenkel <collectd@semidefinite.de> | |
Mon, 15 Aug 2016 18:51:25 +0000 (18:51 +0000) |
src/python.c | patch | blob | history |
diff --git a/src/python.c b/src/python.c
index 05a44aa842dae68fde0f2e9b7f20bffa9d836fb7..a682f3127d32ddfa74d2ada5e737462667b653ce 100644 (file)
--- a/src/python.c
+++ b/src/python.c
static void cpy_destroy_user_data(void *data) {
cpy_callback_t *c = data;
free(c->name);
+ CPY_LOCK_THREADS
Py_DECREF(c->callback);
Py_XDECREF(c->data);
+ CPY_RELEASE_THREADS
free(c);
}