[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20190107.084558.1009669820449792065.davem@davemloft.net>
Date: Mon, 07 Jan 2019 08:45:58 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: gustavo@...eddedor.com
Cc: kjlu@....edu, jon.maloy@...csson.com, ying.xue@...driver.com,
netdev@...r.kernel.org, tipc-discussion@...ts.sourceforge.net,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] tipc: fix memory leak in tipc_nl_compat_publ_dump
From: "Gustavo A. R. Silva" <gustavo@...eddedor.com>
Date: Sat, 5 Jan 2019 10:52:23 -0600
> 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@...eddedor.com>
Applied, thank you.
Powered by blists - more mailing lists