staging: r8188eu: Fix a resource leak in update_bcn_wps_ie
authorXiangyang Zhang <xyz.sun.ok@gmail.com>
Sat, 21 Aug 2021 08:18:24 +0000 (16:18 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Aug 2021 10:17:51 +0000 (12:17 +0200)
commit2d29f81ce82208626f4278d6aa9faa5547c5bf02
treeae40bd396110f521f9b43ee427361f2f340ae106
parent5598e47a79b4300ba3ff2a8c7f44a4f8ed4af20d
staging: r8188eu: Fix a resource leak in update_bcn_wps_ie

The "pbackup_remainder_ie" variable is not freed when "pwps_ie_src" is null

Fixes: 15865124feed ("staging: r8188eu: introduce new core dir for RTL8188eu driver")
Acked-by: Michael Straube <straube.linux@gmail.com>
Signed-off-by: Xiangyang Zhang <xyz.sun.ok@gmail.com>
Link: https://lore.kernel.org/r/20210821081824.14745-1-xyz.sun.ok@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/core/rtw_ap.c