Hi,

On Fri, Apr 29, 2016 at 07:27:04PM +0200, Lars-Peter Clausen wrote:
> This series fixes a large set of memory leaks that can be observed when
> scanning for devices. Some of these leaks are driver specific and are fixed
> in their respective drivers. But there is also one leak that is systematic.
> Most drivers fail to free the drv_context struct that is allocated in
> std_init(). To address this a new helper function called std_cleanup() is
> introduced which will free the drv_context, but in addition also call
> sr_dev_clear() to either call the drivers dev_clear() callback or
> std_dev_clear(). This not only fixes the memory leak but also allows to
> remove all driver specific cleanup callbacks removing a large amount of
> boiler-plate code.
[...] 
> The last two patches in this series remove additional boiler-plate code by
> removing all dev_clear() implementation that implement the default behavior
> and by introducing a new standard helper function for retrieving the
> drivers device list.

Awesome patchset! Merged, thanks a lot! The boilderplate reductions is
especially nice.


Uwe.
-- 
http://hermann-uwe.de | http://randomprojects.org | http://sigrok.org

------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
sigrok-devel mailing list
sigrok-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sigrok-devel

Reply via email to