From 689bc8c1d173f123192109159d69cb9d1d381e99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Garc=C3=A9s?= Date: Mon, 11 Jan 2021 10:42:21 +0100 Subject: [PATCH] Fix memory leak --- core/rtw_wlan_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/rtw_wlan_util.c b/core/rtw_wlan_util.c index e465e9b..bdbc863 100644 --- a/core/rtw_wlan_util.c +++ b/core/rtw_wlan_util.c @@ -4795,8 +4795,8 @@ int rtw_dev_nlo_info_set(struct pno_nlo_info *nlo_info, pno_ssid_t *ssid, } #ifdef set_fs set_fs(fs); - filp_close(fp, NULL); #endif + filp_close(fp, NULL); RTW_INFO("-%s-\n", __func__); return 0; }