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:
committed by
GitHub
parent
a9cf12fcf0
commit
388d3020f2
@ -234,6 +234,8 @@ namespace brssl {
|
||||
if (po) {
|
||||
free(po->name);
|
||||
free(po->data);
|
||||
po->name = nullptr;
|
||||
po->data = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user