1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-20 21:01:25 +03:00

Fix minor GCC10 static analyzer warnings (#7255)

Add minor NULL and double-free checks to source, identified using GCC10
pre-release static `-fanalyzer` on the coude.  These are harmless to
other versions.

Also add explicit include of stdint to Schedule.h, because libstdc++20
will not automatically include it.  Safe and no-op on earlier versions.
This commit is contained in:
Earle F. Philhower, III
2020-04-30 18:25:31 -07:00
committed by GitHub
parent a9cf12fcf0
commit 388d3020f2
3 changed files with 19 additions and 12 deletions

View File

@ -234,6 +234,8 @@ namespace brssl {
if (po) {
free(po->name);
free(po->data);
po->name = nullptr;
po->data = nullptr;
}
}