Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wifi_set_opmode_current(STATIONAP_MODE) leaking memory #30

Open
st0ff3r opened this issue May 1, 2020 · 1 comment
Open

wifi_set_opmode_current(STATIONAP_MODE) leaking memory #30

st0ff3r opened this issue May 1, 2020 · 1 comment

Comments

@st0ff3r
Copy link

st0ff3r commented May 1, 2020

reposting this:

I found out it was fixed by setting LWIP_HAVE_LOOPIF=0 and LWIP_HAVE_SLIPIF=0 but I had to disable content of lwip/netif/espenc.c in order to get it to compile without errors

using latest sdk 992479e from master branch, it appears that wifi_set_opmode_current(STATIONAP_MODE) is leaking memory:

wifi_set_opmode_current(NULL_MODE);

[...]

if (wifi_get_opmode() != STATIONAP_MODE) {
printf("HEAP1=%u\n\r", system_get_free_heap_size());
wifi_set_opmode_current(STATIONAP_MODE);
printf("HEAP2=%u\n\r", system_get_free_heap_size());
}

HEAP1=24888
mode : sta(ec:fa:bc:21:27:94) + softAP(ee:fa:bc:21:27:94)
4010b0b0 already freed
add if0
add if1
dhcp server start:(ip:10.0.5.1,mask:255.255.255.0,gw:10.0.5.1)
bcn 100
3fff7720 already freed
HEAP2=21472

@st0ff3r
Copy link
Author

st0ff3r commented May 3, 2020

fixed by disabling ethernet in pull request #31, commit 2195f94

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant