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-12-25 17:07:49 +09:00
2018-10-23 10:57:06 -07:00
2018-11-10 16:55:11 -08:00
2018-10-22 19:59:20 -07:00
2019-01-07 07:22:36 -08:00
2018-11-15 11:35:40 -08:00
2018-07-24 14:10:42 -07:00
2018-11-29 14:25:36 -08:00
2018-12-19 21:45:17 +01:00
2018-12-28 12:45:04 -08:00