Re: [PATCH] staging: rtl8723bs: fix memory leak error

2021-09-01 Thread F.A. SULAIMAN
On Tue, Aug 31, 2021 at 2:18 PM Dan Carpenter wrote: > > On Tue, Aug 31, 2021 at 01:03:55AM +0530, F.A.Sulaiman wrote: > > Smatch reported memory leak bug in rtl8723b_FirmwareDownload function. > > The problem is pFirmware memory is not released in release_fw1. > > Instead of redirecting to releas

Re: [PATCH] staging: rtl8723bs: fix memory leak error

2021-08-31 Thread Dan Carpenter
On Tue, Aug 31, 2021 at 01:03:55AM +0530, F.A.Sulaiman wrote: > Smatch reported memory leak bug in rtl8723b_FirmwareDownload function. > The problem is pFirmware memory is not released in release_fw1. > Instead of redirecting to release_fw1 we can turn it into exit > and free the memory. > > Si