On Fri, Feb 19, 2016 at 4:06 PM, Cong Wang <[email protected]> wrote: > We only release the memory of the hashtable itself, not its > entries inside. We need to do both. > > Cc: Jamal Hadi Salim <[email protected]> > Signed-off-by: Cong Wang <[email protected]>
Hmm, after a second thought, actually each action should take a reference to its module, therefore module will not be removed until all the actions are gone, so no leak here. The reason why I saw a leak is tcf_hashinfo_destroy() is called in netns cleanup in the other patch. So, this patch should be targeted for net-next only. I will resend it with an updated changelog with the other patch. Sorry for the confusion.
