dls-controls / aioca

Asynchronous Channel Access client for asyncio and Python using libca via ctypes
Apache License 2.0
6 stars 3 forks source link

Fix memory leak #27

Closed coretl closed 2 years ago

coretl commented 2 years ago

On each Subscription update, a new Task was appended to self.__tasks but never removed. This fix adds a callback to the Task that removes it from the set.

Fixes #26

codecov[bot] commented 2 years ago

Codecov Report

Merging #27 (567bcd8) into master (47155dc) will not change coverage. The diff coverage is 100.00%.

@@            Coverage Diff            @@
##            master       #27   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            3         3           
  Lines          406       407    +1     
=========================================
+ Hits           406       407    +1     
Impacted Files Coverage Δ
aioca/_catools.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 47155dc...567bcd8. Read the comment docs.