]> 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)
commita20e2dd075d16d4dad5dcef4fb7f655501fec459
tree84659a30a430a7bfe1bc19bf954b220ceb4f84a6
parent9431302a33289c893d4b0696643b487ea4dbddc7
tipc: fix memory leak of publications

Commit 7461c4499070b53707e7fde9ba5aa84a4bda8e24 ("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