diff options
author | Mohammad Asaad Akram <asadkrm@codeaurora.org> | 2021-05-10 18:52:21 +0530 |
---|---|---|
committer | Mohammad Asaad Akram <asadkrm@codeaurora.org> | 2021-05-10 19:05:43 +0530 |
commit | 8dbca1ae84793b8a39adec1fe652963b69ea52a1 (patch) | |
tree | 5a1a41bd6463f493fba94c552d1357d4cd830ebb | |
parent | b91632f4b04dece373817d80f08beec4615cb593 (diff) |
wpa_supplicant_8_lib: Fix possible memory leakage
This commit fixes possible memory leakage in set congestion report
Change-Id: I438122751b018922f87c8182e3b7e2d50f314308
CRs-Fixed: 2941848
-rw-r--r-- | qcwcn/wpa_supplicant_8_lib/driver_cmd_nl80211.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/qcwcn/wpa_supplicant_8_lib/driver_cmd_nl80211.c b/qcwcn/wpa_supplicant_8_lib/driver_cmd_nl80211.c index 53e2ec3..4cbfda8 100644 --- a/qcwcn/wpa_supplicant_8_lib/driver_cmd_nl80211.c +++ b/qcwcn/wpa_supplicant_8_lib/driver_cmd_nl80211.c @@ -108,6 +108,7 @@ static int wpa_driver_cmd_set_congestion_report(struct i802_bss *bss, char *cmd) !(*endptr) || ((interval = strtol(endptr, &endptr, 10)) < 1 || interval > 30)) { wpa_printf(MSG_ERROR, "%s: args less or invalid", __FUNCTION__); + nlmsg_free(msg); return -EINVAL; } if (nla_put_u8(msg, |