Memory Leak in Github Example
Memory Leak in Github Example
Hello,
In the play_sdr.c example (https://github.com/SDRplay/examples/blo ... play_sdr.c), it effectively leaks memory during long recordings. In the callback function, buf16 (or buf8) is reallocated every time a packet of samples is received, but not released until the whole program is stopped.
In the play_sdr.c example (https://github.com/SDRplay/examples/blo ... play_sdr.c), it effectively leaks memory during long recordings. In the callback function, buf16 (or buf8) is reallocated every time a packet of samples is received, but not released until the whole program is stopped.
Last edited by ERtpl on Thu Jan 01, 1970 12:00 am, edited 0 times in total.
Reason: No reason
Reason: No reason
Re: Memory Leak in Github Example
Good spot - have updated the code and tidied a couple of other things up.
Best regards,
SDRplay Support
Best regards,
SDRplay Support
Reason: No reason