Skip to content

Commit 3fea263

Browse files
committed
Leave NumPy version unspecified; fix memory leak
1 parent 32847c9 commit 3fea263

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
build-backend = "setuptools.build_meta"
33
requires = [
44
"setuptools",
5-
"numpy>=2",
5+
"numpy",
66
]
77

88
[project]

src/pocky/ext/pocky_bufpair.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ int pocky_bufpair_init(pocky_bufpair_object *self,
7575

7676
void pocky_bufpair_dealloc(pocky_bufpair_object *self)
7777
{
78+
if (self->device != NULL) clReleaseMemObject(self->device);
79+
7880
Py_XDECREF(self->context);
7981
Py_XDECREF(self->host);
8082
Py_XDECREF(self->dirty);

0 commit comments

Comments
 (0)