Skip to content

Commit 809a5b0

Browse files
committed
Handle free pointer in pointperfectProvisionDevice
1 parent 4ed8564 commit 809a5b0

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

Firmware/RTKFirmware.csv

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Name, Type, SubType, Offset, Size, Flags
2+
nvs, data, nvs, 0x9000, 0x5000,
3+
otadata, data, ota, 0xe000, 0x2000,
4+
app0, app, ota_0, 0x10000, 0x640000,
5+
app1, app, ota_1, 0x650000,0x640000,
6+
spiffs, data, spiffs, 0xc90000,0x370000,

Firmware/RTK_Surveyor/menuPP.ino

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -366,6 +366,8 @@ bool checkCertificates()
366366
{
367367
if (certificateContents)
368368
free(certificateContents);
369+
if (keyContents)
370+
free(keyContents);
369371
systemPrintln("Failed to allocate content buffers!");
370372
return (false);
371373
}

0 commit comments

Comments
 (0)