Page 1 of 1

Memory Leak in Github Example

Posted: Tue Jul 18, 2017 4:28 pm
by ERtpl
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.

Re: Memory Leak in Github Example

Posted: Tue Jul 18, 2017 7:11 pm
by sdrplay
Good spot - have updated the code and tidied a couple of other things up.

Best regards,

SDRplay Support