baldand / py-metal-compute

A python library to run metal compute kernels on macOS
MIT License
72 stars 11 forks source link

Potential memory leakage #22

Closed spichardo closed 1 year ago

spichardo commented 2 years ago

Hi,

I think there is memory leakage in function Run_init. There is a malloc associated to self->run_handle.bufs that is not released in case of successful execution or if there is an error when mc_sw_run_open is called.