I'm trying to learn how the code works so I'm reading through it line by line. I have seen so many memory leaks in my days so I know where to look ;) They are indeed obscure since we need an error to actually trigger them but I thought I might as well share the info when I found them. On Tue, Dec 15, 2015 at 1:09 PM, Johannes Berg <johannes@xxxxxxxxxxxxxxxx> wrote: > On Sun, 2015-12-13 at 19:12 +0100, Ola Olsson wrote: >> The first leak occurs when entering the default case >> in the switch for the initiator in set_regdom. >> The second leaks a platform_device struct if the >> platform registration in regulatory_init succeeds but >> the sub sequent regulatory hint fails due to no memory. > > Applied, thanks. How are you finding these?? They seems so obscure :) > > johannes -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html