Forum: GNU Radio blks2.pfb_arb_resampler memory leak

Posted by Ryan Pape (Guest)
on 2012-11-25 22:48
(Received via mailing list)
Running the following in a loop 10,000s to 100,0000s of times (I will 
spare
the details as to why)

digital_resamp_1 = blks2.pfb_arb_resampler_ccf(.768)

Causes the program's memory usage to grow continuously over time.  The 
same
behavior is not observed with any other blocks in my flow graph and 
occurs
even if this block is created and not connected to anything.

Can I assume this is unexpected, or is there a reason why I should not
create 100,000s of these and expect them to clean up after themselves?

Ryan
Posted by Tom Rondeau (Guest)
on 2012-11-27 09:42
(Received via mailing list)
On Sun, Nov 25, 2012 at 5:43 PM, Thomas Rondeau <trondeau@trondeau.com> 
wrote:
> I see the problem. d_diff_filters are not being freed in the
> constructor. I'll push a fix once I get to my hotel later tonight.
>
> Tom

Well, travel delays meant that 'later tonight' became 2:30 AM, so this
had to wait until morning. I just pushed a fix to maint/master/next to
resolve this memory leak.

Thanks for point it out!

Tom
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.