net/cxgbe: fix memory leak
authorCongwen Zhang <zhang.congwen@zte.com.cn>
Tue, 5 Sep 2017 08:46:57 +0000 (16:46 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 6 Oct 2017 00:49:48 +0000 (02:49 +0200)
commitc0b865d4717d85138f716d42ca186672b060f166
treea439129b53d894b9dc495c2208ebd8fd74567219
parent772d34356d72af2f5a3d483c83afb00d4cb4ae03
net/cxgbe: fix memory leak

In function t4_wr_mbox_meat_timeout(), dynamic memory stored
in 'temp' variable and it is not freed when the function return,
this is a possible memory leak.

Fixes: 3bd122eef2cc ("cxgbe/base: add hardware API for Chelsio T5 series adapters")
Cc: stable@dpdk.org
Signed-off-by: Congwen Zhang <zhang.congwen@zte.com.cn>
Acked-by: Rahul Lakkireddy <rahul.lakkireddy@chelsio.com>
drivers/net/cxgbe/base/t4_hw.c