Memory Leak in Github Example

Post information or questions regarding SDRplay products here
ERtpl
Posts: 5
Joined: Wed Jun 21, 2017 4:46 pm

Memory Leak in Github Example

Postby ERtpl » Tue Jul 18, 2017 4:28 pm

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.
Last edited by ERtpl on Thu Jan 01, 1970 12:00 am, edited 0 times in total.
Reason: No reason

sdrplay
Posts: 577
Joined: Wed Jan 07, 2015 7:58 am

Re: Memory Leak in Github Example

Postby sdrplay » Tue Jul 18, 2017 7:11 pm

Good spot - have updated the code and tidied a couple of other things up.

Best regards,

SDRplay Support

Reason: No reason


Return to “SDRplay related”

Who is online

Users browsing this forum: Baidu [Spider] and 2 guests