mirror of
https://github.com/vale981/ray
synced 2025-03-06 10:31:39 -05:00
fix segfault in photon.Task (#253)
This commit is contained in:
parent
2d1c980ad7
commit
fefc7d9b49
1 changed files with 3 additions and 1 deletions
|
@ -323,7 +323,9 @@ static int PyTask_init(PyTask *self, PyObject *args, PyObject *kwds) {
|
|||
}
|
||||
|
||||
static void PyTask_dealloc(PyTask *self) {
|
||||
if (self->spec != NULL) {
|
||||
free_task_spec(self->spec);
|
||||
}
|
||||
Py_TYPE(self)->tp_free((PyObject *) self);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue