Skip to content

Commit c621c4b

Browse files
committed
Suppress Cppcheck memory leak as workaround
Cppcheck reported memory leaks in the functions 'q_insert_head' and 'q_insert_tail', which should be considered false alarms. The workaround is to suppress these warnings in advance. Change-Id: I3e70b3805a8de197b26ecfe7a70deed4fe88b523
1 parent 6d74097 commit c621c4b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scripts/pre-commit.hook

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ CPPCHECK_suppresses="--inline-suppr harness.c \
2121
--suppress=staticFunction:harness.c \
2222
--suppress=nullPointerRedundantCheck:queue.c \
2323
--suppress=constParameterPointer:queue.c \
24+
--suppress=memleak:queue.c \
2425
--suppress=nullPointer:queue.c \
2526
--suppress=nullPointer:qtest.c \
2627
--suppress=returnDanglingLifetime:report.c \

0 commit comments

Comments
 (0)