Gustavo A. R. Silva f87d8ad923 tipc: fix memory leak in tipc_nl_compat_publ_dump
There is a memory leak in case genlmsg_put fails.

Fix this by freeing *args* before return.

Addresses-Coverity-ID: 1476406 ("Resource leak")
Fixes: 46273cf7e009 ("tipc: fix a missing check of genlmsg_put")
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Acked-by: Ying Xue <ying.xue@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2019-01-07 11:42:08 -05:00
..
2018-03-23 13:12:18 -04:00
2018-12-19 11:49:24 -08:00
2018-03-27 13:18:09 -04:00
2018-08-29 18:04:54 -07:00
2018-12-19 11:49:24 -08:00
2018-12-19 11:49:24 -08:00
2018-07-21 16:23:22 -07:00
2016-07-26 14:26:42 -07:00
2018-08-29 18:04:54 -07:00
2018-12-19 11:49:24 -08:00
2018-12-19 11:49:24 -08:00
2018-12-19 11:49:24 -08:00
2018-12-19 11:49:25 -08:00