Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
chrchr-github committed Mar 19, 2024
1 parent 4dbcfea commit e992956
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/cfg/opencv2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,9 @@ void ignoredReturnValue()

void memleak()
{
// cppcheck-suppress [cstyleCast, unusedAllocatedMemory]
// cppcheck-suppress cstyleCast
const char * pBuf = (char *)cv::fastMalloc(1000);
// cppcheck-suppress uninitdata
std::cout << pBuf;
// cppcheck-suppress memleak
}

0 comments on commit e992956

Please sign in to comment.