Commit b78a2e2
committed
[nrf fromlist] modules: hostap: Fix memory leak of network
In "connect" all networks are removed and new network is always added,
but in disconnect the network isn't deleted, so, the memory is
unnecessarily held till next connect. This is not exactly a leak, but if
someone profiles using "kernel heap" then this can be construed as a
leak.
Fix this by removing network during the disconnection (for now "all") so
that the memory can be used by someone else.
Upstream PR: zephyrproject-rtos/zephyr#79739
Signed-off-by: Chaitanya Tata <[email protected]>
(cherry picked from commit a51b71dca9a6f402a2fcc93b5272e5a4b4251a46)1 parent 633d4ad commit b78a2e2
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
840 | 840 | | |
841 | 841 | | |
842 | 842 | | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
843 | 847 | | |
844 | 848 | | |
845 | 849 | | |
| |||
0 commit comments