]> git.baikalelectronics.ru Git - kernel.git/commit
tipc: fix possible memory leak in tipc_udp_enable()
authorWei Yongjun <weiyongjun1@huawei.com>
Sat, 10 Sep 2016 00:56:55 +0000 (00:56 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 13 Sep 2016 15:28:32 +0000 (11:28 -0400)
commitdf7efa87340a1db3e3c6dee41e567912352bdfda
tree855cbc716892fc388be6b6d38e2fe357108cd068
parent65e3c96958dc929350a9a1748ed991c5882b0b9b
tipc: fix possible memory leak in tipc_udp_enable()

'ub' is malloced in tipc_udp_enable() and should be freed before
leaving from the error handling cases, otherwise it will cause
memory leak.

Fixes: 29d4bb7b12bb ("tipc: split UDP nl address parsing")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/udp_media.c