Skip to content

Commit e91235d

Browse files
Free CString obtained from DPCTL-CAPI
1 parent abeea34 commit e91235d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

dpctl/_sycl_device.pyx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,7 @@ cdef class SyclDevice(_SyclDevice):
290290
self._device_ref
291291
)
292292
py_info = <bytes> info_str
293+
DPCTLCString_Delete(info_str)
293294
print(py_info.decode("utf-8"))
294295

295296
cdef DPCTLSyclDeviceRef get_device_ref(self):

0 commit comments

Comments
 (0)