Run below script and check the memory usage of the process. With master, the memory usage will continuously increase.
#!/usr/bin/env/python
import pulsectl
if __name__ == '__main__':
with pulsectl.Pulse('test-pulse') as pulse:
while True:
pulse.get_peak_sample(source=None, timeout=0.1)
This PR fixes a memory leak in
get_peak_sample()
.My environment
How to reproduce
Run below script and check the memory usage of the process. With
master
, the memory usage will continuously increase.