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

mgos_http_server.c:248:7: error: Common realloc mistake: 'txt' nulled but not freed upon failure #8

Open
Harvie opened this issue Dec 5, 2020 · 0 comments

Comments

@Harvie
Copy link

Harvie commented Dec 5, 2020

$ cppcheck --force deps/http-server/
Checking deps/http-server/src/mgos_http_server.c ...
Checking deps/http-server/src/mgos_http_server.c: MGOS_DNS_SD_HIDE_ADDITIONAL_INFO=0;MGOS_HAVE_DNS_SD...
deps/http-server/src/mgos_http_server.c:248:7: error: Common realloc mistake: 'txt' nulled but not freed upon failure [memleakOnRealloc]
      txt = realloc(txt, (n + 2) * sizeof(*txt));
      ^
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