Skip to content

limeConfig does not free the device on the error paths inside the configuration loop #408

Description

@dmitrymmm

The error returns for a failed LoadConfig, an unknown Rx antenna name, an unknown Tx antenna name and a failed Configure all return EXIT_FAILURE without calling DeviceRegistry::freeDevice(device), unlike the sibling path just above them and every other exit in the file, so the SDRDevice destructor - which closes the USB or PCIe transport - is skipped.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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