Closed
Description
Subject of the issue
Hi,
in the code, there are mismatched deletes.
In C++ new
must match a delete
and new[]
must match delete[]
.
In the code, there are only delete[]
, even for new
.
For example, in file SparkFun_u-blox_GNSS_Arduino_Library.cpp
:
- moduleSWVersion
- currentGeofenceParams
- packetUBXNAVTIMELS
and basically, all struct-based data pointers have this issue.
This mismatch could lead the code to crash, since it goes into undefined behavior.
Regards.
Metadata
Metadata
Assignees
Labels
No labels