Skip to content

mismatched delete #53

Closed
Closed
@FStefanni

Description

@FStefanni

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions