]> git.baikalelectronics.ru Git - kernel.git/commit
tipc: fix memory leak of publications
authorYing Xue <ying.xue@windriver.com>
Tue, 29 Apr 2014 03:12:18 +0000 (11:12 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 30 Apr 2014 17:31:26 +0000 (13:31 -0400)
commitb297966e62611bbfd9e8144bb082fa470b166f4b
tree84659a30a430a7bfe1bc19bf954b220ceb4f84a6
parentddf244ba3e3326e4c75070dbe85247dc65e25f78
tipc: fix memory leak of publications

Commit d596a8327ae4ea55b4669acb8133c798922048e1 ("tipc: fix memory
leak during module removal") introduced a memory leak issue: when
name table is stopped, it's forgotten that publication instances are
freed properly. Additionally the useless "continue" statement in
tipc_nametbl_stop() is removed as well.

Reported-by: Jason <huzhijiang@gmail.com>
Signed-off-by: Ying Xue <ying.xue@windriver.com>
Acked-by: Erik Hugne <erik.hugne@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/name_table.c