CHROMIUM: rtw88: fix c2h memory leak of firmware adaptivity

Fix erroneous code that leads to unreferenced objects. Release the object
that is no longer needed to avoid memory leak.

Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>

BUG=b:191218829
TEST=none

Signed-off-by: Zong-Zhe Yang <kevin_yang@realtek.com>
Change-Id: I33d249edd11bef94a3fe2f9ea72dc83e7a9b939f
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/kernel/+/2975739
Reviewed-by: Yen-lin Lai <yenlinlai@chromium.org>
Tested-by: Yen-lin Lai <yenlinlai@chromium.org>
Commit-Queue: Yen-lin Lai <yenlinlai@chromium.org>
(cherry picked from commit cc9e30cb1130fba86413fff5dfd8636e4c1605db)
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/kernel/+/2981474
1 file changed