MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / mismatchAllocDealloc

Function mismatchAllocDealloc

test/cfg/windows.cpp:521–531  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

519}
520
521void mismatchAllocDealloc()
522{
523 char * pChar = static_cast<char*>(_aligned_malloc(100, 2));
524 // cppcheck-suppress mismatchAllocDealloc
525 free(pChar);
526
527 // cppcheck-suppress unusedAllocatedMemory
528 pChar = static_cast<char*>(_malloca(32));
529 // cppcheck-suppress mismatchAllocDealloc
530 _aligned_free(pChar);
531}
532
533void nullPointer()
534{

Callers 1

variableMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected