[high] cppcheck: Memory leak: table #843

Closed
opened 2026-11-04 16:32:32 +00:00 by pruefwerk · 1 comment
Member

high Finding

Scanner: cppcheck
Severity: high
Rule: memleak
CWE: CWE-401

Description

Memory leak: table

Location

File: fixtures/nightly/firmware/c-sensor-node/Core/Src/sensors.c (line 32)

Code

        return -1;   /* `table` leaks here */

Remediation

Exclude fixtures/nightly from production cppcheck triage.


Fingerprint: d7c0393cb4e7991c818438c79d5cc9f5934385ee0c6533efcc51dde3d42209cf
Generated by compliance-scanner
Open in Prüfwerk / In Prüfwerk öffnen

## high Finding **Scanner:** cppcheck **Severity:** high **Rule:** memleak **CWE:** CWE-401 ### Description Memory leak: table ### Location **File:** `fixtures/nightly/firmware/c-sensor-node/Core/Src/sensors.c` (line 32) ### Code ``` return -1; /* `table` leaks here */ ``` ### Remediation Exclude fixtures/nightly from production cppcheck triage. --- *Fingerprint:* `d7c0393cb4e7991c818438c79d5cc9f5934385ee0c6533efcc51dde3d42209cf` *Generated by compliance-scanner* [Open in Prüfwerk / In Prüfwerk öffnen](https://pruefwerk.breakpilot.com/findings?target=6ae9aa2160f5d8045fc570a7)
pruefwerk added the cra:annex-ipruefwerkseverity:high labels 2026-11-04 16:32:32 +00:00
Author
Member

Prüfwerk: Die Datei liegt in Testdaten (z. B. fixtures/ oder testdata/), die von der Prüfung ausgenommen sind.

The file lies in test data (such as fixtures/ or testdata/), which is left out of the scan.

**Prüfwerk:** Die Datei liegt in Testdaten (z. B. fixtures/ oder testdata/), die von der Prüfung ausgenommen sind. The file lies in test data (such as fixtures/ or testdata/), which is left out of the scan.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: platform/pruefwerk#843