Memory Leak in Github Example

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

Memory Leak in Github Example

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


In the play_sdr.c example ( ... 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

Posts: 830
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: No registered users and 19 guests